I’m making an attempt to make a clear clipping quantity utilizing shaders. I discovered this shader code that was supposed to cover all the things inside no matter quantity it is utilized to whereas drawing what’s behind someplace and utilized it to a dice.
Shader "Customized/BufferStencil" {
SubShader {
Tags { "Queue"="Geometry+1" }
Cross {
Mix Zero One // maintain the picture behind it
}
}
FallBack "Diffuse"
}
For some objects within the scene, this works. The a part of them throughout the clipping quantity disappears. Nevertheless, I’ve a skinny dice with a textured airplane on prime of it that I need to conceal. The dice simply has the default materials utilized to it. After I transfer the dice with this shader utilized nevertheless, nothing adjustments. Why might this be?
Have in mind I am not too skilled with Unity shaders. I am on the very starting of studying how one can use them.
Thanks upfront.