Skip to content

Commit

Permalink
rtx: fixup emissive color, #145
Browse files Browse the repository at this point in the history
  • Loading branch information
w23 committed Dec 8, 2021
1 parent f9fc8fd commit 8d041d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ref_vk/shaders/ray.rchit
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ void main() {
const vec3 emissive_color = base_color;
//const vec3 emissive_color = pow(base_color, vec3(2.2));
//const float max_color = max(max(emissive_color.r, emissive_color.g), emissive_color.b);
payload.emissive = emissive_color;// * mix(vec3(1.), kusok.emissive, smoothstep(.3, .6, max_color));
payload.emissive = normalize(kusok.emissive) * emissive_color;// * mix(vec3(1.), kusok.emissive, smoothstep(.3, .6, max_color));
}

payload.kusok_index = kusok_index;
Expand Down

0 comments on commit 8d041d3

Please sign in to comment.