|
-
Nov 17th, 2007, 01:53 PM
#1
Thread Starter
Hyperactive Member
[RESOLVED] HLSL - Get Destination Pixel?
Hi,
Its been a while since I posted but here goes. I want to get the colour of a pixel 'below' (to be rendered over) so that I can decide if I want to render a new pixel on top of it.
I am trying to use multiple lights in my scene and I want to check if a pixel is lighter than the new pixel. So that the only places that are dark are those without any lights shining on them.
Ultimately I am trying to achieve a 2D lighting engine that supports more than one light. Can I achieve this any easier?
Any help is appreciated!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|