Split texture, stochastic sampled, triplanar texture shader for Godot4
Based on:
- /u/Rotoscope's Stochastic Sampling Shader for Unity
- John Watson's Split Triplanar Terrain Shader for Godot3
- Unzip the folder into your project so that the terrain-shader folder is in your addons folder.
- Create a Shader Material and use Terrain.gdshader as the shader.
- Set shader parameters:
- set wall_tex_scale and top_tex_scale to be larger than zero.
- set wall_color and top_color to be lighter than black (eg middle grey)
- assign textures to wall_tex and top_tex
- adjust blend values (2,0,0,1 are good starting values) (These just have to be played with and adjusted to your taste)
There's also an example material in the example folder