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
0 registered members (), 938 guests, and 4 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
Passing a value to material on level geometry?! #45491
05/09/05 18:19
05/09/05 18:19
Joined: May 2003
Posts: 609
Rattenfängerstadt
Rigoletto Offline OP
Developer
Rigoletto  Offline OP
Developer

Joined: May 2003
Posts: 609
Rattenfängerstadt
Hi,

i tried to use skill1 - skill8 on materials for levels, not on entities. But they don´t work. The only way to pass a value i find is via the mtlmatrix. I wan´t to use a value to switch on/off and changing color for my new Tutorial. It works but i can only use the mtlmatrix. Is there unused space in the matrix? Anyone have a complete description of the matrix, i can´t find it anywhere.

Re: Passing a value to material on level geometry?! [Re: Rigoletto] #45492
05/09/05 22:03
05/09/05 22:03
Joined: Oct 2003
Posts: 4,131
M
Matt_Aufderheide Offline
Expert
Matt_Aufderheide  Offline
Expert
M

Joined: Oct 2003
Posts: 4,131
you can use skill 1-8 .. just set them in a starter function like so:

starter mat_init
{
mat_level_shader.skill1=float(whatever);
...
}

and in your shader declare it like this:
float4 mtlSkill1;

then you can access it like any other vector

Re: Passing a value to material on level geometry? [Re: Matt_Aufderheide] #45493
05/10/05 16:50
05/10/05 16:50
Joined: May 2003
Posts: 609
Rattenfängerstadt
Rigoletto Offline OP
Developer
Rigoletto  Offline OP
Developer

Joined: May 2003
Posts: 609
Rattenfängerstadt
@Matt_Aufderheide: Oh thanks it works, i have surveyed a mistake.

I have upload a second .zip of the project which shows turn on/off and change the light.

Advanced Fixed Function Tutorial


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