Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Code Snippets / spot light

Author
Message
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 27th May 2004 14:38
A variation of my other code. A sprite moves around, and the mouse is the light source. There's a significant slow down when the mouse is actually over the sprite. I'm not sure if this is because I'm using a sprite this time rather than a plane, or not.

I have nowhere to upload the images to, so you'll have to supply them. clouds.jpg is the texture images, t.jpg is the spotlight(a white gradient sphere fading out to black) And no, the images do not have to be the same size. Actually, you should make the light image smaller.



"eureka" - Archimedes

Login to post a reply

Server time is: 2024-05-12 17:10:04
Your offset time is: 2024-05-12 17:10:04