Issue Setting Color of Thin Instance

This one is a little more involved because there’s no simple way to inject some code just after the alpha texture has been sampled.

You can use a feature that allows to tamper with the shader source code just before it is sent to the GPU to replace the alpha sampling code by your own (lines 51-64):

https://www.babylonjs-playground.com/#KWVY94#10

You can also write your own shader with ShaderMaterial but it’s even more involved.

You could also write a node material in the NME, using for eg uv2 to hold tileOffset.

1 Like