Add inversesqrt to shader language.

This commit is contained in:
Ferenc Arn 2017-09-21 21:02:08 -04:00
parent b51180caa3
commit a6c3147c0a
1 changed files with 4 additions and 0 deletions

View File

@ -1377,6 +1377,10 @@ const ShaderLanguage::BuiltinFuncDef ShaderLanguage::builtin_func_defs[] = {
{ "sqrt", TYPE_VEC2, { TYPE_VEC2, TYPE_VOID } },
{ "sqrt", TYPE_VEC3, { TYPE_VEC3, TYPE_VOID } },
{ "sqrt", TYPE_VEC4, { TYPE_VEC4, TYPE_VOID } },
{ "inversesqrt", TYPE_FLOAT, { TYPE_FLOAT, TYPE_VOID } },
{ "inversesqrt", TYPE_VEC2, { TYPE_VEC2, TYPE_VOID } },
{ "inversesqrt", TYPE_VEC3, { TYPE_VEC3, TYPE_VOID } },
{ "inversesqrt", TYPE_VEC4, { TYPE_VEC4, TYPE_VOID } },
//builtins - common
{ "abs", TYPE_FLOAT, { TYPE_FLOAT, TYPE_VOID } },
{ "abs", TYPE_VEC2, { TYPE_VEC2, TYPE_VOID } },