Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
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
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 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