mirror of
https://github.com/godotengine/godot.git
synced 2024-12-02 09:02:45 +00:00
Fix: The ORMMaterial3D shader doesn't compile #50161
This commit is contained in:
parent
053198a5f3
commit
2a34ff94e4
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user