Changed the outline layer and hair shadow caster layer from LayerMask to RenderingLayerMask;
This commit is contained in:
@@ -19,6 +19,8 @@ public class UTSHairShadowPass : DrawRenderersCustomPass
|
||||
private RTHandle _outputRTHandle;
|
||||
private bool _isEnable = false;
|
||||
|
||||
public UnityEngine.RenderingLayerMask renderingLayerMask;
|
||||
|
||||
protected override void Setup(ScriptableRenderContext renderContext, CommandBuffer cmd)
|
||||
{
|
||||
_outputRTHandle?.Release();
|
||||
@@ -61,7 +63,7 @@ public class UTSHairShadowPass : DrawRenderersCustomPass
|
||||
sortingCriteria = sortingCriteria,
|
||||
excludeObjectMotionVectors = false,
|
||||
stateBlock = stateBlock,
|
||||
layerMask = layerMask,
|
||||
renderingLayerMask = renderingLayerMask,
|
||||
};
|
||||
|
||||
CoreUtils.DrawRendererList(ctx.renderContext, ctx.cmd, ctx.renderContext.CreateRendererList(result));
|
||||
|
||||
Reference in New Issue
Block a user