floatv(variable)

Posted By: Oberon3d

floatv(variable) - 02/04/08 19:14

Hi.

I want to pass an alpha valuefrom an entity into a shader so I can modify the outColor.a of a shader and fade it away.

The problem I have is that I can't get my head around the 32 IEEE values thing.
and the floatV and floatr aren't helping me...any ideas?....

Thanks a lot.
Posted By: Slin

Re: floatv(variable) - 02/04/08 19:19

What is your problem with floatv?
Posted By: Oberon3d

Re: floatv(variable) - 02/04/08 20:30

my problem is that for the outColor to be fully visible the value required is 31, if i make it 32 it is fully invisible....

I don' know what the reason can be for this.
Anyone can tell me what is the right way to use a variable from a script in a shader?

Is the only way through floatV or floatR?

Thanks a lot.
Posted By: Slin

Re: floatv(variable) - 02/04/08 20:56

my.skill41 = floatv(my.alpha/100);
Posted By: Oberon3d

Re: floatv(variable) - 02/04/08 23:35

just tried it.

Works perfectly. Thank you for your help .
© 2024 lite-C Forums