public void PreRender(PipelineCamera cam)
 {
     PreviousDepthData.GetPreviousDepthData getDepthData = new PreviousDepthData.GetPreviousDepthData
     {
         currentSize = new Vector2Int(cam.cam.pixelWidth, cam.cam.pixelHeight)
     };
     prevDepthData = IPerCameraData.GetProperty <PreviousDepthData, PreviousDepthData.GetPreviousDepthData>(cam, getDepthData);
     prevDepthData.targetObject = this;
 }
예제 #2
0
 public override void PreRenderFrame(PipelineCamera cam, ref PipelineCommandData data)
 {
     texComponent  = IPerCameraData.GetProperty(cam, (c) => new HistoryTexture(c.cam));
     prevDepthData = IPerCameraData.GetProperty(cam, (cc) => new PreviousDepthData(new Vector2Int(cc.cam.pixelWidth, cc.cam.pixelHeight)));
     prevDepthData.targetObject = this;
     data.buffer.SetGlobalVector(ShaderIDs._LastJitter, texComponent.jitter);
     cam.cam.ResetProjectionMatrix();
     ConfigureJitteredProjectionMatrix(cam.cam, ref texComponent.jitter);
     data.buffer.SetGlobalVector(ShaderIDs._Jitter, texComponent.jitter);
 }
예제 #3
0
 public override void PreRenderFrame(PipelineCamera cam, ref PipelineCommandData data)
 {
     HistoryTexture.GetHistoryTexture getHis = new HistoryTexture.GetHistoryTexture
     {
         cam = cam.cam
     };
     texComponent = IPerCameraData.GetProperty <HistoryTexture, HistoryTexture.GetHistoryTexture>(cam, getHis);
     PreviousDepthData.GetPreviousDepthData getDepthData = new PreviousDepthData.GetPreviousDepthData
     {
         currentSize = new Vector2Int(cam.cam.pixelWidth, cam.cam.pixelHeight)
     };
     prevDepthData = IPerCameraData.GetProperty <PreviousDepthData, PreviousDepthData.GetPreviousDepthData>(cam, getDepthData);
     prevDepthData.targetObject = this;
     data.buffer.SetGlobalVector(ShaderIDs._LastJitter, texComponent.jitter);
     cam.cam.ResetProjectionMatrix();
     ConfigureJitteredProjectionMatrix(cam.cam, ref texComponent.jitter);
     data.buffer.SetGlobalVector(ShaderIDs._Jitter, texComponent.jitter);
 }
예제 #4
0
 public void PreRender(PipelineCamera cam)
 {
     prevDepthData = IPerCameraData.GetProperty(cam, (cc) => new PreviousDepthData(new Vector2Int(cc.cam.pixelWidth, cc.cam.pixelHeight)));
     prevDepthData.targetObject = this;
 }