Hi all, first post here
I’m trying to create a shader in Node Material Editor that will take a base texture image and adjust it randomly for each instance of a mesh (in my case, tweaking the green value to create nice varied trees).
I’m quite new to shaders, my method so far has been trying to adjust the Vector2 ‘seed’ value of a Random number block using a custom buffer. What I have so far is just changing the value for all on load, but not per instance.
I am a bit unsure about what attributes I can grab using registerInstancedBuffer (‘color’ is the main one I’ve seen in examples), I’ve seen other examples where they use the AddAttribute method but that isn’t with Node materials(?). I’ve also seen examples where a texture is combined with another colour from the instance buffer but it would be good for me to grab a value and do more stuff with it in the NME.
Finally, I can’t find much information on what the instanceID output of the Instances block does (but this is a bit of a bonus topic )