floatv(var x)

Gibt x in ein 32 Bit IEEE Fliesskomma-Format umgewandelt zurück. Praktisch, um Fliesskomma-Werte an var-Variablen für Vertex-Shader und Matrixe zuzuweisen.

Parameter:

x - irgendeine var

Rückgabewert:

x umgewandelt in 32 Bit IEEE Fliesskomma-Format, jedoch immer noch als Typ var.

Geschwindigkeit:

Schnell

Bemerkungen:

Beispiel:

mtl_bump.skill1 = floatv(time_step); // pass the time_step variable to a material effect 

Siehe auch:

floatr, floatd , fixed

► Aktuelle Version Online