- Home /
texture is the background colors but negative. How to do that?
hello i have a cross in the centre this cross must have as texture the background of it but then negative minecraft has this to the cross in the centre has as texture the background of it but than negative. Please help me.
Rick Grendel
thank you in advance
Answer by Lunatix · Dec 08, 2014 at 05:23 PM
You could possibly write a little shader which handles this case (theory below).
Render your screen into a frame buffer (render buffer)
Render the crosshair with a second camera - the shader needs the rendered scene as a texture input, inverting or finding the compliment colour where your crosshair sprite has a specific color (white, for example) and returning the already rendered colour everywhere else.
This would require A Unity Pro license since free does not support rendering to texture.
P.S.: Read this for complementary colours.
i have pro but i dont know how to use your answer. I cant shade. Can you help me?
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Textures on Terrain 3 Answers
My sand texture is strangely bright. 0 Answers
How To Add Textures To GameObjects? 2 Answers
textures vs textureless 2 Answers