Question by
MikePage_Artrix · Aug 14, 2018 at 08:15 PM ·
stencilmaterialpropertyblock
Can you use MaterialPropertyBlock to set Stencil Ref values
Properties
{
[PerRendererData] _MainTex ("Sprite Texture", 2D) = "white" {}
_Color ("Tint", Color) = (1,1,1,1)
[MaterialToggle] PixelSnap ("Pixel snap", Float) = 0
_ScaleX ("ScaleX", Float) = 1
_ScaleY ("ScaleY", Float) = 1
[PerRendererData] _StencilCompare ("Stencil Compare", Float) = 0
}
Hi all, I've done a lot of reading but I'm getting conflicting messages.
All I'd like to know is if a MaterialPropertyBlock supports setting the
[PerRendererData] _StencilCompare ("Stencil Compare", Float) = 0
It doesn't seem to do anything in Unity 2017.4.3f1.
Thanks in advance!
Comment
Your answer
Follow this Question
Related Questions
Invisible transition mask 0 Answers
Change Material Parameters Value?? 0 Answers
Making a shader ignore masks 0 Answers
Stencil shader blocking shadows being drawn 'underneath' 2 Answers
Shader Clip with Stencil 0 Answers