protected override void OnModifyMaterialCallback(MaterialModifier.Interface owner) { Debug.Assert(owner != null); var planeWS = planeEquationWS; owner.SetMaterialProp(ShaderProperties.DynamicOcclusionClippingPlaneWS, new Vector4(planeWS.normal.x, planeWS.normal.y, planeWS.normal.z, planeWS.distance)); owner.SetMaterialProp(ShaderProperties.DynamicOcclusionClippingPlaneProps, fadeDistanceToSurface); }
protected abstract void OnModifyMaterialCallback(MaterialModifier.Interface owner);
protected override void OnModifyMaterialCallback(MaterialModifier.Interface owner) { Debug.Assert(owner != null); owner.SetMaterialProp(ShaderProperties.DynamicOcclusionDepthTexture, m_DepthCamera.targetTexture); owner.SetMaterialProp(ShaderProperties.DynamicOcclusionDepthProps, fadeDistanceToSurface); }