Beispiel #1
0
 void SetupIdentifier(VPostProcess post)
 {
     post.Init();
     if (m_renderResources.modified == true || post.textureIdentifiers.init == false)
     {
         post.textureIdentifiers.init               = true;
         post.textureIdentifiers.sceneColor         = m_renderResources.sceneColor.data;
         post.textureIdentifiers.sceneColorPrev     = m_renderResources.sceneColorPrev.data;
         post.textureIdentifiers.normal_Roughness   = m_renderResources.normal_Roughness.data;
         post.textureIdentifiers.depth_Velocity     = m_renderResources.depth_Velocity.data;
         post.textureIdentifiers.baseColor_Metallic = m_renderResources.baseColor_Metallic.data;
         post.ReuildCommandBuffer();
     }
 }
Beispiel #2
0
 public void Execute(ref ScriptableRenderContext renderContext, VPostProcess post)
 {
     SetupIdentifier(post);
     renderContext.ExecuteCommandBuffer(post.cb);
 }