rtx: skybox srgb workaround for #230

This commit is contained in:
Ivan 'provod' Avdeev 2021-11-25 12:31:36 -08:00
parent a9d5e4dd22
commit 405a9ecbb4
1 changed files with 1 additions and 1 deletions

View File

@ -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.;