public override void Create() { _meshSubdivisionLit = new MeshSubdivisionLit() { renderPassEvent = RenderPassEvent.BeforeRenderingOpaques, }; }
public override void Create() { _meshSubdivisionPrepass = new MeshSubdivisionPrepass(_meshSubdCS) { renderPassEvent = RenderPassEvent.BeforeRendering, }; _meshSubdivisionShadowCasterPass = new MeshSubdivisionShadowCasterPass(_meshSubdMat) { renderPassEvent = RenderPassEvent.AfterRenderingShadows, }; _meshSubdivisionDepthPrepass = new MeshSubdivisionDepthPrepass(_meshSubdMat) { renderPassEvent = RenderPassEvent.AfterRenderingPrePasses - 25, }; _meshSubdivisionLit = new MeshSubdivisionLit(_meshSubdMat) { renderPassEvent = RenderPassEvent.BeforeRenderingOpaques + 25, }; _meshSubdivisionPostpass = new MeshSubdivisionPostpass() { renderPassEvent = RenderPassEvent.AfterRenderingOpaques, }; }