Question by
ericksimoes · Sep 15, 2020 at 12:18 AM ·
shadershadersocclusion
Occluder shader works in scene view but not game view
I'm using a shader to hide objects behind it:
Shader "Unlit/Occluder" {
SubShader {
Tags { "Queue" = "Geometry-1" }
ColorMask 0
ZWrite On
Pass { }
}
}
I applied to a material (following the instructions on this link:https://support.wikitude.com/support/discussions/topics/5000082243)
In the end everything works, but only in the Scene View: (is a cube with the shader applied in front of another cube with a standard shader)
Game View looks like this:
How can I fix this so that when the game is running, the result looks like in the Scene View?
Comment
Your answer
Follow this Question
Related Questions
Glowing outline with occlusion 0 Answers
How to Change the Shader Color? 0 Answers
A problem with a shader to make a window transparent 0 Answers
i wanna draw inside like outside. shader.... 1 Answer
Combine 2 Shaders,Combine 2 shaders 0 Answers