Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
4 registered members (NewbieZorro, Grant, TipmyPip, AndrewAMD), 12,885 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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