Layered Material / Shader / Texture for realtime manipulation of part of a texture.
Hi guys,
I have the following use case: Coloring book with outlines of animals. Child colors in the page and as they stop coloring the animals come to life and move. They animate with the colors that were drawn.
The child can fill in the color in the coloring book but outlines cannot be colored. I want to be able to animate the animal (have a Spine 2D character with a unity material.) So whatever goes into the drawing should stay with the material result.
I want to be able to use the coloring data so the animal is animated with the texture of anything the child drew into the animal but with the outlines over the animal. I just want this to be part of the material..not UVs or anything.
I donʻt know if this is a shader/material or if Unity supports this out of the box. Layers looks like this: 1) outline 2) coloring data (below)
Thinking more like maya where you could layer textures in a material that had the same UV data. I havenʻt found any apparent way that unity supports this out of the box but its obviously in a lot of games. I imagine this is how a lot of terrain textures are generated.
Can someone point me in the right direction (tutorial/code sample/asset) to find out how to setup the texture/material/shader? (whatever it is I need to setup). I've looked but as of yet have not found the solution.
Thank you,
Kalani
Your answer
Follow this Question
Related Questions
Material.SetTexture doesn't work if not "_MainTex" 0 Answers
How to make a 'Simple Texture 2D LOD' infinite using a Shader Graph ? 0 Answers
Changing color on specific tile in texture at runtime 0 Answers
How do I get smooth edges for a voxel game? 1 Answer
how to make dynamic textures for multiple objects? 0 Answers