Hi guys,
in my Game is a bug with rendering. I guess it’s just a small setting in the graphic or rendering options but i haven’t an idea where or what should i search for in older threads.
In the attached two pictures you can see the problem.
How you may can see, there are some Cubes or Objects shown behin others wich should be behind.
This changes all the time when i move.
I would be very thankful for every help.
greetings
Thilo
This is the second picture. I wasnt able to put 2 pictures in one Post.
I found the solution on my own.
The problem was, the material of the cubes was set to Transparent Diffuse.
I fixed it with changing it to Diffuse.
If you have this Issues with two Transparent Diffuse Blocks do the following steps:
-
Get the SourceCode of the Shadering of for example Transparent Diffuse
http://unity3d.com/unity/download/archive
The Data is called Alpha Diffuse
-
Create a own Shader with the same SourceCode as the one you downloaded
-
Edit the Source Code of your new Shader
- Give it an other Name (i called it Transparent/DiffuseZ+)
- Edit the origian Line wich Begins with Tags to this one:
Tags {"Queue"="Transparent+1" "IgnoreProjector"="True" "RenderType"="Transparent" }
The Block with the new Shader gets drawn later now. So you have to put this shader to the blocks wich should be shown more near to the camera.