Ejemplo n.º 1
0
        public static LightingPipeline RenderSunlights(this LightingPipeline pipeline, SunlightSystem sunlightSystem)
        {
            var stage = new SunlightStage(pipeline.Device, sunlightSystem);

            pipeline.Add(stage);
            return(pipeline);
        }
        public static LightingPipeline RenderDirectionalLights(
            this LightingPipeline pipeline,
            DirectionalLightSystem directionalLightSystem)
        {
            var stage = new DirectionalLightStage(pipeline.Device, directionalLightSystem);

            pipeline.Add(stage);
            return(pipeline);
        }
Ejemplo n.º 3
0
        public static LightingPipeline RenderPointLights(
            this LightingPipeline pipeline,
            PointLightSystem pointLightSystem)
        {
            var stage = new PointLightStage(pipeline.Device, pointLightSystem);

            pipeline.Add(stage);
            return(pipeline);
        }
        public static LightingPipeline RenderShadowCastingLights(
            this LightingPipeline pipeline,
            ShadowCastingLightSystem shadowCastingLightSystem)
        {
            var stage = new ShadowCastingLightStage(pipeline.Device, shadowCastingLightSystem);

            pipeline.Add(stage);
            return(pipeline);
        }
        public static LightingPipeline RenderAmbientLight(
            this LightingPipeline pipeline,
            AmbientLightSystem ambientLightSystem,
            bool enableSSAO)
        {
            var stage = new AmbientLightStage(pipeline.Device, ambientLightSystem, enableSSAO);

            pipeline.Add(stage);
            return(pipeline);
        }
Ejemplo n.º 6
0
 public static LightingPipeline ClearLightTargets(this LightingPipeline pipeline)
 {
     pipeline.Add(new ClearStage());
     return(pipeline);
 }