From 4bc90bb19b97122c98ea87a216b6baeb89acef69 Mon Sep 17 00:00:00 2001 From: Flimsy Fox Date: Sun, 26 May 2024 05:11:50 -0600 Subject: [PATCH] Correct sign of eyeVector in sampleSphere function --- Flimsy Fox PBR.shader | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Flimsy Fox PBR.shader b/Flimsy Fox PBR.shader index c5eff09..a6c46ec 100644 --- a/Flimsy Fox PBR.shader +++ b/Flimsy Fox PBR.shader @@ -372,7 +372,7 @@ } sphereSample /= d; - float3 wi = (eyeVector + 1)/2; + float3 wi = -(eyeVector + 1)/2; //DEBUG: Should the Z and X axis be swapped in the ZX-plane? float2 sphereXY = sphereSample.xy;