- Home /
How do i correct the rendering order of two transparent materials ?
Hi , I am having problems with my space simulation game, when i try to render the shield (depending on the angle) the cockpit window of the ship overlaps with the shield, what i need to do for the in game camera to render those materials in the right order ?
Right order of rendering :
Wrong order of rendering :
Answer by samizzo · Jun 30, 2015 at 02:49 AM
Sorting and rendering transparent objects can be a pain sometimes, and different solutions are required for different scenarios. In this case you want the shield to always render after the cockpit. I think you could set the render queue to force that. They are both probably currently set to Transparent
so set the shield's render queue to Transparent+1
and that should fix it.
cutout shaders use a solid color to exclude backgrounds. For example, green screens.
i am using the standard shader, how can i limitate this change to only one material ?
Your answer
Follow this Question
Related Questions
Surface of a object appear under certain lights... 1 Answer
Transparent shader with depth writes 3 Answers
Quick GUI Texture Question 0 Answers
Overlapping Unity Players w/ Transparency 1 Answer
Pages overlapping problem 1 Answer