Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
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 (Grant, dr_panther, AndrewAMD), 1,379 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
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 | 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