diff --git a/src/skybox/shader/skybox.frag b/src/skybox/shader/skybox.frag index c599993..b09a8ff 100644 --- a/src/skybox/shader/skybox.frag +++ b/src/skybox/shader/skybox.frag @@ -23,8 +23,9 @@ vec3 decodeRGBE(vec4 rgbe) { void main() { vec4 color = textureCube(u_EnvironmentSampler, v_Position); + gl_FragColor = vec4(color.rgb * u_Exposure, 1.0); if (u_RGBE) { color = vec4(decodeRGBE(color), 1.0); + gl_FragColor = vec4(linearToSRGB(color.rgb * u_Exposure), 1.0); } - gl_FragColor = vec4(linearToSRGB(color.rgb * u_Exposure), 1.0); } \ No newline at end of file diff --git a/test/snapshots/ugdpm.png b/test/snapshots/ugdpm.png index d0855d8..bc2936d 100644 Binary files a/test/snapshots/ugdpm.png and b/test/snapshots/ugdpm.png differ diff --git a/test/snapshots/ygihm.png b/test/snapshots/ygihm.png index 8d712f0..809a902 100644 Binary files a/test/snapshots/ygihm.png and b/test/snapshots/ygihm.png differ