Re: How to sample my texture via shader composition
Where does your texture come from? Is it from a shared ImageLayer?
oe_layer_tilec is [0..1] in both x and y for each vertex in a terrain tile. So if your texture is from a shared ImageLayer, you can multiple oe_layer_tilec by your texture matrix to position it on a terrain tile.
Even if I change the shader to "texture2D(myTexture, vec2(0.0, 0.0))" I can tell it's not pulling the right color. The texture is solid white but all I'm getting is black. Not really sure what I'm doi9ng wrong.