I know i can put the cube in Blender and set one different material to the face on the top, and that would kind of solve it. Though im trying to do it without having my cube with 2 materials.
Is there a way to do this without doing that whole shananigans?
Without movement
Pretty sure you can do something with ‘object orientation’ or ‘transform vector’ to make it moveable…
Thanks thats what i was looking for.
So cool.
Meanwhile i worked on my own solution.
That was to export the Cube to blender, and unwrap UVs, and add a separate material to the top face of the cube.
So I ended up with this:
Its 2 materials though.
VS
Your solution, that uses VertexNormal + If statement.
What do you think?
I also made your solution here.
It seems for the top face of the cube it needed just a little change in the if statement:
Will the VertexNormalWS + If statement be more performant than adding a second material on the mesh?
I thought you didn’t want the 2 material solution
I think, probably, if you have 20k of these in the level, then the material is possibly slightly more performant. Just because there’s one material
yup, i ended up using your technique with the VertexWS. Its just better.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.