Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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