View Full Version : How to render depth and normal into texture
10-13-2005, 08:06 AM
I want to save depth and normal as textures, how to do? thanks!
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.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.