I am trying to write a view space position out through gl_FragData.
Unfortunately this value seems to be clamped [0-1]
(or at least it is when I read it back)
Is there a way not to clamp it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Simply use floating point textures: GL_RGBA16F, GL_RGBA32F, etc… they are not clamped
http://www.opengl.org/wiki/Floating_point_and_mipmapping_and_filtering
I use (for creating empty floating point texture):