Glass Shader problems
Sorry if I ask too much this week, but I got another problem (or multiple) with my glass shader. 1. As you can see in the image, the middle just doesn't render the background. This problem is appearing and disappearing as I move closer or away.
2. The small selection above shows a little problem, wich is mainly related to the transparency also drawing the glass behind it, wich causes these edges. I'm looking for a method to hide the glass behind or just don't render the glass fragment if there's something between the camera and the glass.
You could use the stencil buffer, but that would involve setting everything as a mask.
What is the stencil buffer and Can you give me an example?
http://docs.unity3d.com/$$anonymous$$anual/SL-Stencil.html
The stencil buffer allows you to mask the pixels on screen. A common use of this is portals, or the non-euclidean cubes from Antichamber;
Your answer
Follow this Question
Related Questions
URP Two sided transparency Artefacts? 0 Answers
Backside of planes appear black and not transparent? (PBR Shader Graph) 0 Answers
Render transparent mesh over sprite 0 Answers
Shader not working properly in a build 0 Answers
Looking at a Chunk from Straight Down will not Render Blocks, but Looking at it from the Side does? 1 Answer