summaryrefslogtreecommitdiffstats
path: root/scene/resources/material.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/resources/material.cpp')
-rw-r--r--scene/resources/material.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/scene/resources/material.cpp b/scene/resources/material.cpp
index b7f5c4c338..2b15a123b9 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -2739,13 +2739,13 @@ float BaseMaterial3D::get_grow() const {
return grow;
}
-static Plane _get_texture_mask(BaseMaterial3D::TextureChannel p_channel) {
- static const Plane masks[5] = {
- Plane(1, 0, 0, 0),
- Plane(0, 1, 0, 0),
- Plane(0, 0, 1, 0),
- Plane(0, 0, 0, 1),
- Plane(0.3333333, 0.3333333, 0.3333333, 0),
+static Vector4 _get_texture_mask(BaseMaterial3D::TextureChannel p_channel) {
+ static const Vector4 masks[5] = {
+ Vector4(1, 0, 0, 0),
+ Vector4(0, 1, 0, 0),
+ Vector4(0, 0, 1, 0),
+ Vector4(0, 0, 0, 1),
+ Vector4(0.3333333, 0.3333333, 0.3333333, 0),
};
return masks[p_channel];