Browse Source

Fix TemporalFiltering.

clementlandrin 2 years ago
parent
commit
1c675e7e88
1 changed files with 5 additions and 3 deletions
  1. 5 3
      hrt/prefab/rfx/TemporalFiltering.hx

+ 5 - 3
hrt/prefab/rfx/TemporalFiltering.hx

@@ -176,9 +176,6 @@ class TemporalFiltering extends hrt.prefab.rfx.RendererFX {
 			s.prevFrame = prevFrame;
 			s.prevFrame = prevFrame;
 			s.amount = amount;
 			s.amount = amount;
 
 
-			s.depthChannel = depthMap.texture;
-			s.depthChannelChannel = depthMap.channel == null ? hxsl.Channel.R : depthMap.channel;
-
 			s.PACKED_DEPTH = depthMap.packed != null && depthMap.packed == true;
 			s.PACKED_DEPTH = depthMap.packed != null && depthMap.packed == true;
 			if( s.PACKED_DEPTH ) {
 			if( s.PACKED_DEPTH ) {
 				s.depthTexture = depthMap.texture;
 				s.depthTexture = depthMap.texture;
@@ -188,6 +185,11 @@ class TemporalFiltering extends hrt.prefab.rfx.RendererFX {
 				s.depthChannelChannel = depthMap.channel == null ? hxsl.Channel.R : depthMap.channel;
 				s.depthChannelChannel = depthMap.channel == null ? hxsl.Channel.R : depthMap.channel;
 			}
 			}
 
 
+			s.resolution.set(output.width, output.height);
+			s.VARIANCE_CLIPPING = varianceClipping;
+			s.YCOCG = ycocg;
+			s.UNJITTER = unjitter;
+
 			r.setTarget(output);
 			r.setTarget(output);
 			pass.render();
 			pass.render();