Jump to content
  • Advertisement
Sign in to follow this  
akira32

How do I change the shadow color in ShadowVolume

This topic is 3762 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

How do I change the shadow color in ShadowVolume How do I change the shadow color in ShadowVolume(DirectX Sample Browser November 2007,July 2004)? I want to change the color of shadow to be float4(0.7f,0.7f,0.7f,1.0f). I think the vertex format of shadow is the key point. If I can modify the shadow mesh's vertex format with color. But I do not how to modify it. Could somebody talk how to do that? [Edited by - akira32 on July 2, 2008 7:22:14 PM]

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by akira32
I think the vertex format of shadow is the key point.
If I can modify the shadow mesh's vertex format with color.

Rendering the shadow volume just sets the stencil buffer. The color of the mesh is irrelevant. Everything but the vertex position and normal is irrelevant.

If you want to simply apply a global shadow color over all 'masked' shadow areas to darken them, just render a full-screen quad with the shadow color over them with Modulate.

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!