diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-06-20 12:46:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-06-20 12:46:54 +0200 |
commit | cf76b713cb27ea703fcb5a975f856ad85fcf5f96 (patch) | |
tree | d763f0d8cfd858fdd3a1814c15bda962d5c3789c /servers | |
parent | 237a0488eba742d15bc676b27838c1635dcd79a9 (diff) | |
parent | 13e8b5ed8f6865e71807986b700932dad025acfa (diff) |
Merge pull request #24487 from Meirinha/master
Added UV and UV2 to shader function light() built-in, fixes issue #24120
Diffstat (limited to 'servers')
-rw-r--r-- | servers/visual/shader_types.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/servers/visual/shader_types.cpp b/servers/visual/shader_types.cpp index bc6010117c..75910ff1c0 100644 --- a/servers/visual/shader_types.cpp +++ b/servers/visual/shader_types.cpp @@ -137,6 +137,8 @@ ShaderTypes::ShaderTypes() { shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["FRAGCOORD"] = constt(ShaderLanguage::TYPE_VEC4); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["NORMAL"] = constt(ShaderLanguage::TYPE_VEC3); + shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["UV"] = constt(ShaderLanguage::TYPE_VEC2); + shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["UV2"] = constt(ShaderLanguage::TYPE_VEC2); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["VIEW"] = constt(ShaderLanguage::TYPE_VEC3); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["LIGHT"] = constt(ShaderLanguage::TYPE_VEC3); shader_modes[VS::SHADER_SPATIAL].functions["light"].built_ins["LIGHT_COLOR"] = constt(ShaderLanguage::TYPE_VEC3); |