Browse Source

[SSR] Modulate reflection result with surface color.

clandrin 4 years ago
parent
commit
8a8121397d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/prefab/rfx/SSR.hx

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

@@ -80,7 +80,7 @@ class SSRShader extends hxsl.Shader {
 				alpha = 1.0 - (curPosWS - transformedPosition).length() / maxRayDistance;
 			}
 
-			pixelColor.rgba = vec4(fragmentColor, alpha);
+			pixelColor.rgba *= vec4(fragmentColor, alpha);
 		}
 	}
 }