• Advertisement
Sign in to follow this  

Need help with a bumpmapping shader

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

Going by the DHPOWare bumpmapping example, I was able to create an almost-working bumpmap shader: There is a single directional light in the scene, but the light vector seems to move with the camera rotation. I have uploaded the demo here. The lighting itself works fine. The light equation I am using is working correctly. However, the bumpmapping effect shifts with the camera rotation. I don't think the dhpoware example was written to handle camera orientation. If anyone could take a look at the shader, I would appreciate it. I'm going to need to get a few miscellaneous shader features added, and I would be interested in paying someone for some more help. Please email support at leadwerks dot com. Thank you. [Edited by - Joshua Klint on May 24, 2007 6:29:47 PM]

Share this post


Link to post
Share on other sites
Advertisement
post the shader source (+ how u set the uniforms whatever)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement