Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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,935
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,935
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