Jump to content
  • Advertisement
Sign in to follow this  
giugio

multiple render target 1 color

This topic is 3084 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

HY.
I would draw arbitrary shape shadow , each shadow must be written in a render target.
I would have 2 color : 0 and 1 , when the shadow is present i write 1(the color is 1) if the shadow is not present i write 0.
at the end the shadow is a shape filled with 1 and I'm would render each of 10 shadow shape with multiple render target , all at the max speed .
is possible to gainspeed with draw only two color?
thanks.

Share this post


Link to post
Share on other sites
Advertisement
The biggest speed improvement you can make is draw all your shadows in the same shadow map. Maybe you can assign to every shadow a different color id (a 32 bit value that has only one bit as 1) and add the ids together when drawing the shadows in the same shadow map. This way you could render up to 32 shadows at once. If you increase the number of bits in the value you can render more shadows at once.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!