Merge pull request #11481 from tagcup/inversesqrt

Add inversesqrt to shader language.
This commit is contained in:
Rémi Verschelde 2017-09-22 09:24:19 +02:00 committed by GitHub
commit bbcf6bde41

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 } },