Jump to content
The Dark Mod Forums

Parallax Corrected Cubemaps?


Recommended Posts

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));

 

Link to post
Share on other sites

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 🤨

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...