stgatilov 1255 Posted May 1, 2020 Report Share Posted May 1, 2020 I have a question about shader. How does this work and why is it needed: //--------------------------------------------------------- // Tone Map to convert HDR values to range 0.0 - 1.0 //--------------------------------------------------------- draw_Color.xyz = color.xyz / (color.xyz + vec3(1.0)); Quote Link to post Share on other sites
cabalistic 795 Posted May 1, 2020 Report Share Posted May 1, 2020 I copied that from the original cubemap reflection shader, no clue about its origin or purpose. To be honest, I forgot about that line, or I would have tried to see what it looks like without it Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.