Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, Ayumi, ozgur), 650 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shader question #402481
06/06/12 08:07
06/06/12 08:07
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Hey there,

I posted this question in the shader forum:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=402305#Post402305

As it seems that no one has an answer I try again here.

Regards,
Pegamode.

Re: shader question [Re: pegamode] #402497
06/06/12 11:49
06/06/12 11:49
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Yes, of course a shader can react on spot lights. The fastest method uses vertex lighting: calculate the angle to the spot light center ray, and dim the light when the angle is bigger than the cone angle. The center ray is given by vecLightDir.

http://manual.3dgamestudio.net/Shader-vecLightPos.htm


Re: shader question [Re: jcl] #402500
06/06/12 12:14
06/06/12 12:14
Joined: Feb 2006
Posts: 1,011
Germany
pegamode Offline OP
Serious User
pegamode  Offline OP
Serious User

Joined: Feb 2006
Posts: 1,011
Germany
Thanks for your answer ... I'll try to figure out how to modify the shader to our needs.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1