You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -562,25 +567,33 @@ public void ConformBlendsToPreset() {
562
567
563
568
564
569
publicstringGetStencilContent(){
570
+
565
571
strings="";
566
-
567
-
s+="Ref "+stencilValue+"\n";
568
-
569
-
if(stencilMaskRead!=(byte)255)
570
-
s+="ReadMask "+stencilMaskRead+"\n";
571
-
if(stencilMaskWrite!=(byte)255)
572
-
s+="WriteMask "+stencilMaskWrite+"\n";
573
-
if(stencilComparison!=DepthTestStencil.Always)
574
-
s+="Comp "+stencilComparison+"\n";
575
-
if(stencilPass!=StencilOp.Keep)
576
-
s+="Pass "+stencilPass+"\n";
577
-
if(stencilFail!=StencilOp.Keep)
578
-
s+="Fail "+stencilFail+"\n";
579
-
if(stencilFailZ!=StencilOp.Keep)
580
-
s+="ZFail "+stencilFailZ+"\n";
581
-
582
-
returns.Substring(0,s.Length-1);
583
-
572
+
if(allowStencilWriteThroughProperties){
573
+
s+="Ref [_Stencil]\n";
574
+
s+="ReadMask [_StencilReadMask]\n";
575
+
s+="WriteMask [_StencilWriteMask]\n";
576
+
s+="Comp [_StencilComp]\n";
577
+
s+="Pass [_StencilOp]\n";
578
+
s+="Fail [_StencilOpFail]\n";
579
+
s+="ZFail [_StencilOpZFail]";
580
+
}else{
581
+
s+="Ref "+stencilValue+"\n";
582
+
if(stencilMaskRead!=(byte)255)
583
+
s+="ReadMask "+stencilMaskRead+"\n";
584
+
if(stencilMaskWrite!=(byte)255)
585
+
s+="WriteMask "+stencilMaskWrite+"\n";
586
+
if(stencilComparison!=DepthTestStencil.Always)
587
+
s+="Comp "+stencilComparison+"\n";
588
+
if(stencilPass!=StencilOp.Keep)
589
+
s+="Pass "+stencilPass+"\n";
590
+
if(stencilFail!=StencilOp.Keep)
591
+
s+="Fail "+stencilFail+"\n";
592
+
if(stencilFailZ!=StencilOp.Keep)
593
+
s+="ZFail "+stencilFailZ+"\n";
594
+
s=s.Substring(0,s.Length-1);
595
+
}
596
+
returns;
584
597
}
585
598
586
599
publicvoidRefractionBlock(refRectr){
@@ -645,7 +658,12 @@ public void StencilBlock(ref Rect r){
645
658
if(!useStencilBuffer)
646
659
return;
647
660
r.xMin+=20;
648
-
661
+
662
+
allowStencilWriteThroughProperties=UndoableToggle(r,allowStencilWriteThroughProperties,"Expose stencil as properties","toggle expose stencil as properties");
0 commit comments