public override void FrameUpdate(PipelineCamera cam, ref PipelineCommandData data)
 {
     localLightDistance = clamp(localLightDistance, 0, cam.cam.farClipPlane);
     DirLight(cam, ref data);
     PointLight(cam, ref data);
     LightFilter.Clear();
 }
Ejemplo n.º 2
0
 public override void FrameUpdate(PipelineCamera cam, ref PipelineCommandData data)
 {
     if (iesAtlas == null)
     {
         iesAtlas = whiteTex;
     }
     //Calculate CBDR
     DirLight(cam, ref data);
     PointLight(cam, ref data);
     LightFilter.Clear();
     decalEvt.FrameUpdate(cam, ref data);
 }
Ejemplo n.º 3
0
 public override void FrameUpdate(PipelineCamera cam, ref PipelineCommandData data)
 {
     if (iesAtlas == null)
     {
         iesAtlas = whiteTex;
     }
     //Calculate CBDR
     DirLight(cam, ref data);
     PointLight(cam, ref data);
     LightFilter.Clear();
     data.buffer.SetGlobalVector(ShaderIDs._LightEnabled, lightEnabledSettings);
 }
Ejemplo n.º 4
0
        public override void FrameUpdate(PipelineCamera cam, ref PipelineCommandData data)
        {
            RenderTargetIdentifier source, dest;

            PipelineFunctions.RunPostProcess(ref cam.targets, out source, out dest);
            data.buffer.BlitSRT(source, dest, ShaderIDs._DepthBufferTexture, lightingMaterial, 0);
            data.buffer.BlitSRT(source, dest, ShaderIDs._DepthBufferTexture, lightingMaterial, 1);
            //Calculate CBDR
            DirLight(cam, ref data);
            PointLight(cam, ref data);
            //Calculate Lighting
            data.buffer.BlitSRTWithDepth(cam.targets.renderTargetIdentifier, ShaderIDs._DepthBufferTexture, lightingMaterial, 2);
            LightFilter.Clear();
        }
Ejemplo n.º 5
0
 public override void FrameUpdate(PipelineCamera cam, ref PipelineCommandData data)
 {
     DirLight(cam, ref data);
     PointLight(cam, ref data);
     LightFilter.Clear();
 }