@Evgeni_Popov I can’t seem to make this node material work w/ thin instances?
Is there a playground somewhere? Using nme w/ thin instances?
You must use the Instances
block and use its output as the new world matrix instead of the predefined World
matrix input.
Thanks! On another note, does FragCoord give me the world position of the fragment?
No, FragCoord
gives you the window x/y coordinates of the fragment (in the range 0..screen_width
/0..screen_height
, not 0..1
).
You get the world position by multiplying the world matrix with the mesh position.
What about the case of a procedural texture? mesh.position isn’t available?
I tried the instances block output, still getting a broken result?
Is there a playground?
A procedural texture generation is a 2D processing, so you won’t have access to any 3D information (there’s no mesh rendered while generating a procedural texture). Procedural texture is a lot like Post process in the NME.
I tried the instances block output, still getting a broken result?
I guess we will need a repro to see what happens.
Hello @unicomp21 just checking in are you still having issues?
Thanks for the ping, no issues, just trying to overcome my tiny brain, lol.
Oh don’t worry just wanted to know if there was anything we could help with