Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
2 registered members (3run, AndrewAMD), 667 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: shader snippets (1): diffuse (per-pixel)-light [Re: Joey] #131623
05/25/07 16:16
05/25/07 16:16
Joined: Oct 2006
Posts: 873
S
Shadow969 Offline
User
Shadow969  Offline
User
S

Joined: Oct 2006
Posts: 873
wow, useful topic, i always wanted to learn all this shaders stuff. Keep it up guys

Re: shader snippets (1): diffuse (per-pixel)-light [Re: Shadow969] #131624
05/28/07 15:47
05/28/07 15:47
Joined: Mar 2006
Posts: 2,503
SC, United States
xXxGuitar511 Offline
Expert
xXxGuitar511  Offline
Expert

Joined: Mar 2006
Posts: 2,503
SC, United States
Nice...


however, I wonder how it will look/run in 3DGS. I'll have to come back to check it out. I've been banned for ~10 days so I've got some business to take care of...


xXxGuitar511
- Programmer
Re: shader snippets (1): diffuse (per-pixel)-light [Re: xXxGuitar511] #131625
05/28/07 15:56
05/28/07 15:56
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline OP
Expert
Joey  Offline OP
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
have a look at my second snippet, there's a version which supports 8 coloured lights, attenuation and a texture.

Re: shader snippets (1): diffuse (per-pixel)-light [Re: Excessus] #131626
05/29/07 17:20
05/29/07 17:20
Joined: Jan 2003
Posts: 4,615
Cambridge
Joey Offline OP
Expert
Joey  Offline OP
Expert

Joined: Jan 2003
Posts: 4,615
Cambridge
Quote:

dir = vecViewPos - point




how would that work without 3dgs? matViewInverse[3].xyz does not work for me (whyever).

Page 2 of 2 1 2

Moderated by  Blink, Hummel, Superku 

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