Jump to content
  • Advertisement
Sign in to follow this  
Kapoef

Access to lights in HLSL

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

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
Advertisement
DAMMIT

Now what do i do?

I guess i can use one *.fx file for all lighting and objects, or can't I?

Share this post


Link to post
Share on other sites

Hi,

check the HLSL code by ATI which is simulating the fixed function pipeline :
link

They have implemented ffp style-lighting too.

Good luck!

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
Sign in to follow this  

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!