GameDev Pulse
3.38K subscribers
3.31K photos
614 videos
30 files
2.88K links
Game Developers News, Lessons, Books, Assets and many more. Godot, Unreal Engine, Unity, Blender. Our Website is https://gameunion.tv/en
加入频道
#GodotEngine #Shader compiler to avoid stutters when spawning new assets:

Instructions:
– For each material, add one MeshInstance or Particles object that uses the material to a group called "materials". You can add nodes to a group by selecting the node and clicking the "Node" tab in the top right corner. Adding multiple nodes with the same material to the group is fine but will waste resources.
– Add a node as a direct child of the camera node.
– Assign the shaderCompile.gd script to the node.
– This script assumes the existence of a top-level node called "World" which all scene objects reside in. Change this name as necessary for your project.
– There's two variables to play with. existFrames is the number of frames which go by until the quad mesh is hidden. – Set this to a number between 1 and 5. verticalDisplacement is the vertical distance of the quad mesh from the camera. Try tweaking both variables if you notice hiccups still occur.

https://github.com/webnetweaver/Godot_shadercompile
🔥5