Sign in to follow this  
delta262

Deferred Shading, DirectX 9 scissor question

Recommended Posts

delta262    100
I'm working on a rendering side project in which I'm using a deferred shading method with the DirectX 9 SDK. When I first added a few lights to the scene I didn't notice a hit in frame rate, but when around 70 lights were added to the scene it became unplayable. So I started using scissor rects, but now whenever the camera is close to the lights there appears to be a dark outlining where the end of the scissor rect is.

Share this post


Link to post
Share on other sites
delta262    100
I'm creating the clip rect similar to the way that is in the Nvidia SDK 9.5, the deferred shading example, where you pass in the lights position and range and create a clip rect from that data. Even if I expand the range of the lights beyond the radius that they are lighting, I still get dark rectangles that appear at the sides of the screen.

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