Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 10/25/26 03:42
Chat Room for Zorro Programmers
by Haitao_Ren. 10/25/26 03:14
Trading Journey
by Haitao_Ren. 10/25/26 03:14
Algorithmic trading course with Zorro
by Haitao_Ren. 10/25/26 03:12
Zorro tutorial ideas?
by Haitao_Ren. 10/25/26 02:47
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (TipmyPip, JeyKey II, 3run), 7,722 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Haitao_Ren, JimSimons, julienp, julienper, KelleyAbbey
19247 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