Sign in to follow this  
Kapoef

Access to lights in HLSL

Recommended Posts

Hi I would like to know if it is possible to gain access to lights in HLSL code that were set using : d3dDevice->SetLight(0, &light ); d3dDevice->LightEnable(0, TRUE); Lets say this light was a point light and is one of many lights. How do I gain access to this light in HLSL code, I'm using a basic HLSL file to act just like the Fixed Function Pipeline. (I plan to change this later) If this is possible can someone please explain how? Thanks in advance.

Share this post


Link to post
Share on other sites
I would like to thank all of you I'm sorta busy with other crap now but I will check out both links later today.

TY TY TY

I'll post again if I still can't figure it out. So I'll prolly rely on you guys again.

hehehe

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