Gamestudio Links
Zorro Links
Newest Posts
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
No connection to MT4
by JeyKey II. 10/29/26 09:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (Quad), 17,261 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
MaliceTheMaker, Haitao_Ren, JimSimons, julienp, julienper
19248 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Tweaking Shader Values in realtime #160960
10/14/07 16:37
10/14/07 16:37
Joined: Aug 2005
Posts: 390
Florida
O
oldschoolj Offline OP
Senior Member
oldschoolj  Offline OP
Senior Member
O

Joined: Aug 2005
Posts: 390
Florida
Is it relatively easy to tweak shader values in realtime. And if so whats the best method to do this, and what are the limitations. I would like to be able to tweak ambient, specular, diffuse, phong, tiling, etc. with a custom inteface i've built. What sort of variables do i need to make for this and how do I tie them all into the code?


you can find me with my face in the keyboard, unshaven, listening to some nameless techno tragedy, and hashing through code over a cold cup a stale joe. __________________________________ yours truly
Re: Tweaking Shader Values in realtime [Re: oldschoolj] #160961
10/14/07 17:26
10/14/07 17:26
Joined: Jan 2004
Posts: 2,013
The Netherlands
E
Excessus Offline
Expert
Excessus  Offline
Expert
E

Joined: Jan 2004
Posts: 2,013
The Netherlands
Use material or entity skills. You can set mtlSkills in c-script with the float() function, and in lite-c by assiging a float value (like 1.0f). You can access these values in the shader with mtlSkill1...mtlSkill4 or the entSkill variables.

Re: Tweaking Shader Values in realtime [Re: Excessus] #160962
10/14/07 17:56
10/14/07 17:56
Joined: Oct 2002
Posts: 8,939
planet.earth
ello Offline
Senior Expert
ello  Offline
Senior Expert

Joined: Oct 2002
Posts: 8,939
planet.earth
plus you have direct access to the materials ambient, specular and so on values thru vecAmbient ... in the shader


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