Sign in to follow this  
skmichi

multiple render targets in opacity shadow maps

Recommended Posts

Hi everyone, I have 4 render targets (textures) attached to a FBO. In a pixel shader I want to render to each channel of these 4 textures (I want to save only the opacity of the pixel at 16 different depth values). My problem is - how to tell the shader that in Red channel of the first texture I want the opacity of the pixel when maximum depth is D, then in Green channel in the same texture I want opacity of pixels when maximum depth is set do D+1 and so on. So finally I would get 16 opacity maps, each for different depth. It's called opacity shadow maps, anyone has any ideas? Thanks a lot. michi

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this