diff options
author | Ferenc Arn <tagcup@yahoo.com> | 2017-09-21 21:02:08 -0400 |
---|---|---|
committer | Ferenc Arn <tagcup@yahoo.com> | 2017-09-21 21:02:08 -0400 |
commit | a6c3147c0a3f0e663399039be136fd116fd79e41 (patch) | |
tree | d8b376e7a4a045bc9f2dae96a392eb3c43d91cb9 /servers/visual | |
parent | b51180caa3063937d2155233fd0bf8155c317ba9 (diff) |
Add inversesqrt to shader language.
Diffstat (limited to 'servers/visual')
-rw-r--r-- | servers/visual/shader_language.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/visual/shader_language.cpp b/servers/visual/shader_language.cpp index 6ad433268f..ec3337686f 100644 --- a/servers/visual/shader_language.cpp +++ b/servers/visual/shader_language.cpp @@ -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 } }, |