瀏覽代碼

ColorGradient: fix transition

lviguier 3 月之前
父節點
當前提交
052a34aaef
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/rfx/ColorGrading.hx

+ 1 - 1
hrt/prefab/rfx/ColorGrading.hx

@@ -101,7 +101,7 @@ class ColorGrading extends RendererFX {
 
 		var c1 : ColorGrading = cast r1;
 		var c2 : ColorGrading = cast r2;
-		var c = new ColorGrading(this.parent, this.shared);
+		var c = new ColorGrading(null, null);
 		c.customLutsBlend = { from : @:privateAccess c1.customLut == null ? c1.getLutTexture() : c1.customLut, to: @:privateAccess c2.customLut == null ? c2.getLutTexture() : c2.customLut };
 		var blendTonemap = new ColorGradingTonemapBlend();
 		blendTonemap.blendFactor = t;