Home Game Development shaders – Unity clipping quantity not working

shaders – Unity clipping quantity not working

0
shaders – Unity clipping quantity not working

[ad_1]

I’m attempting to make a clear clipping quantity utilizing shaders. I discovered this shader code that was supposed to cover every part inside no matter quantity it is utilized to whereas drawing what’s behind someplace and utilized it to a dice.

Shader "Custom/BufferStencil" {
  SubShader {
    Tags { "Queue"="Geometry+1" }
    Pass {
      Blend 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. However, I’ve a skinny dice with a textured airplane on high of it that I need to cover. The dice simply has the default materials utilized to it. When I transfer the dice with this shader utilized nevertheless, nothing modifications. Why may this be?
Keep in thoughts I’m not too skilled with Unity shaders. I’m on the very starting of studying find out how to use them.

Thanks upfront.

[ad_2]

LEAVE A REPLY

Please enter your comment!
Please enter your name here