summaryrefslogtreecommitdiffstats
path: root/scene/resources/material.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-09 20:29:06 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2021-12-10 17:41:17 +0100
commit92e9cca5be9158272329a3cd71ffda7dc09bb0cd (patch)
tree89ebb7641d0466241482df19211256cba9fcbd42 /scene/resources/material.cpp
parent4f9b6d9a3f7ba9315312c563ca6f805b60b635ab (diff)
downloadredot-engine-92e9cca5be9158272329a3cd71ffda7dc09bb0cd.tar.gz
Rename `hint_aniso` to `hint_anisotropy` in the shader language
The word "anisotropy" is used in full form in BaseMaterial3D's anisotropy-related properties.
Diffstat (limited to 'scene/resources/material.cpp')
-rw-r--r--scene/resources/material.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index 98bda4ad1b..87aee0aae4 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -695,7 +695,7 @@ void BaseMaterial3D::_update_shader() {
}
if (features[FEATURE_ANISOTROPY]) {
code += "uniform float anisotropy_ratio : hint_range(0,256);\n";
- code += "uniform sampler2D texture_flowmap : hint_aniso," + texfilter_str + ";\n";
+ code += "uniform sampler2D texture_flowmap : hint_anisotropy," + texfilter_str + ";\n";
}
if (features[FEATURE_AMBIENT_OCCLUSION]) {
code += "uniform sampler2D texture_ambient_occlusion : hint_white, " + texfilter_str + ";\n";