OpenGL Discussion and Help Forums
>
DEVELOPERS
>
OpenGL Shading Language
> How to render depth and normal into texture
PDA
View Full Version :
How to render depth and normal into texture
Flying_sands
10-13-2005, 08:06 AM
I want to save depth and normal as textures, how to do? thanks!
Corrail
10-13-2005, 08:30 AM
Just take the gl_FragCoord.z value in the pixel shader an write it to gl_FragColor.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.