public override void Create()
        {
            instance = this;

            rendererPass = new ScreenSpacePlanarReflectionRenderer(this);

            rendererPass.renderPassEvent =
                RenderPassEvent.AfterRenderingTransparents;                 //必须等 _CameraOpaqueTexture 和 _CameraDepthTexture 有内容了
        }
Exemplo n.º 2
0
 public ScreenSpacePlanarReflectionRenderer(ScreenSpacePlanarReflectionFeature _settings)
 {
     settings = _settings;
     cs       = _settings.computeShader;
 }