rtx: skybox srgb workaround for #230
This commit is contained in:
parent
a9d5e4dd22
commit
405a9ecbb4
|
@ -96,7 +96,7 @@ void main() {
|
||||||
payload.transmissiveness = 0.;
|
payload.transmissiveness = 0.;
|
||||||
payload.normal = vec3(0.);
|
payload.normal = vec3(0.);
|
||||||
payload.geometry_normal = vec3(0.);
|
payload.geometry_normal = vec3(0.);
|
||||||
payload.emissive = texture(skybox, gl_WorldRayDirectionEXT).rgb;
|
payload.emissive = pow(texture(skybox, gl_WorldRayDirectionEXT).rgb, vec3(2.2)); // Why?! See #230
|
||||||
payload.kusok_index = -1;
|
payload.kusok_index = -1;
|
||||||
payload.roughness = 0.;
|
payload.roughness = 0.;
|
||||||
payload.metalness = 0.;
|
payload.metalness = 0.;
|
||||||
|
|
Loading…
Reference in New Issue