Gamestudio Links
Zorro Links
Newest Posts
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
What are you working on?
by rayp. 11/02/26 13:57
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
4 registered members (AndrewAMD, Live, alibaba, Martin_HH), 30,750 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
newbie to shaders #38301
12/24/04 11:46
12/24/04 11:46
Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
BERG Offline OP
Member
BERG  Offline OP
Member

Joined: Jun 2003
Posts: 261
Broken Arrow ,OK
hhow are shaders made??
do u make them using a program or what?

Alex

Re: newbie to shaders [Re: BERG] #38302
12/27/04 06:56
12/27/04 06:56
Joined: Sep 2003
Posts: 48
germany
sane Offline
Newbie
sane  Offline
Newbie

Joined: Sep 2003
Posts: 48
germany
i am no pro and my english is bad, too , but i will try to explain:

Shader-code is a code which for example changes the value of each pixel on a model.
all pixel have got like 4 main values: red, green, blue and alpha.

with pixel-shaders you can change these values:

ps.1.3

def c0,0.1,0.2,0.3,1 // a register called c0 with the red value 0.1 , the grenn value 0.2 ...

tex t0 // gets the first texture of a model
tex t1 // gets the second

mul r0,t0,t1 // multiplys the first texture with the second and stores this in a kind of register

add r0,r0,c0 // adds to the mixture the rgba-values of c0
mov t0,r0 // puts the new information back on the first texture and on the model

i dont know if this would work but this kind of logic helped me to understand the topic a little bit...

Last edited by sane; 12/27/04 06:57.

---------------------------------- www.xiron.de

Moderated by  Blink, Hummel, Superku 

Gamestudio download | 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