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
0 registered members (), 18,008 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
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