how to make dynamic textures for multiple objects?
hi,
I'm trying to figure out a way to make dynamic textures for a voxel-based project of mine: it has blocks with 3 textures for its material:
a base texture that will not change
a bump map
a black and white map that will change color depending on a variable, sitting on the base texture
The blocks works like the cubes in Robocraft or crossout, changing colour but retaining some original details like scratch marks or uncolored lettering. So far the only way i found how to make it work is by:
using the BnW texture and make the base texture's covered parts black
changing the color of the BnW's white texture into the target color
make a matrix addition between the two
here is an example in blender of what i'm trying to get, the color will be fixed and won't change after its color is assigned.
here you see, the block is a single 12-sided cylinder with the material on
it's nice and all but if i have to make every block i ever place summon a function that makes matrix calculations on a 480*270 texture every frame (i can't just save their texture in the RAM for every block) for every blocks i will never manage to have a decent framerate anytime soon, there must be another way to have that working?
Maybe some kind of swizzle-able map supported by unity or some post-processing that keeps in some 3d matrix every voxel's color then replace every pixel it sees with its swizzled version?
Your answer
Follow this Question
Related Questions
Toon Basic shader turns objects pink in 5.3.4f1 1 Answer
AVPro plugin + Amplify Shader 0 Answers
Do I need a thousand materials or not?,, 0 Answers
shader graph messes up the texture (2D) 0 Answers
Can I have an Invisible Mesh which renders lighting and shadows as if it were not invisible? 0 Answers