Passing a value to material on level geometry?!

Posted By: Rigoletto

Passing a value to material on level geometry?! - 05/09/05 18:19

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.
Posted By: Matt_Aufderheide

Re: Passing a value to material on level geometry?! - 05/09/05 22:03

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
Posted By: Rigoletto

Re: Passing a value to material on level geometry? - 05/10/05 16:50

@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
© 2023 lite-C Forums