I have troubles passing values to an fixed function effect.
I have several entities of the same model. They all have the same material assigned. I want them to use the same Mtl.skin but with different texturecoordinates. I can only achieve this through setting .U and .V in the entity action.
i have tried this in the entitys action:
mtl.skill1=entity.skill1 // where entity skill1 is different for each entity.
and this in the material event:
mtl.matrix41 = floatd(mtl.skill1,500); // u offset
But they all get the same displacement. I guess i have to access the entitys skill from within the material event function. But this i simply cant understand how this would be possible.
Any ideas are appreciated.