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