summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-07-06 22:55:14 +0200
committerGitHub <noreply@github.com>2021-07-06 22:55:14 +0200
commit86b215516dd4368431d0e17766378dbb3f2ca8cc (patch)
tree09057de9ad8574b88f55d73493e8b0bf99032746
parent30f379df6ae2247d7a769cd15240a25d1b03085a (diff)
parent2a34ff94e4e8a2d8c384a9461871c18f83ddfada (diff)
Merge pull request #50213 from m44615/fix_50161
Fix: The ORMMaterial3D shader doesn't compile #50161
-rw-r--r--scene/resources/material.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 4f7926d38d..47c5c3df28 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -999,9 +999,9 @@ void BaseMaterial3D::_update_shader() {
code += "\tSPECULAR = specular;\n";
} else {
if (flags[FLAG_UV1_USE_TRIPLANAR]) {
- code += "\tfloat orm_tex = triplanar_texture(texture_orm,uv1_power_normal,uv1_triplanar_pos);\n";
+ code += "\tvec4 orm_tex = triplanar_texture(texture_orm,uv1_power_normal,uv1_triplanar_pos);\n";
} else {
- code += "\tfloat orm_tex = texture(texture_orm,base_uv);\n";
+ code += "\tvec4 orm_tex = texture(texture_orm,base_uv);\n";
}
code += "\tROUGHNESS = orm_tex.g;\n";