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.