Alpha texture in shaderterrainmesh not work

Here’s a shader using 4 detail textures and a fifth texture to control where the derail textures are splatted: https://gist.github.com/wezu/3892a0a61ae9ddfe57c0aa3f22825ac0
You need to use terrain.set_shader_input(‘detail_tex1’, loader.load_texture(…)) to set the textures, the attribute texture shader input name is ‘attribute_tex’

2 Likes