summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-02-01 23:18:24 +0100
committerGitHub <noreply@github.com>2021-02-01 23:18:24 +0100
commitb24c24f64b4ac9c30dc5a9e097163cbc64939645 (patch)
treedb24b8811d05e0b5b3eee7a782455b8487ccee49 /scene
parent2d897d12c1fd3c20269cc0606c106a41753c0acc (diff)
parent73e62dffb909fcf47be23d4fa056e9039b7e561f (diff)
Merge pull request #45594 from JFonS/improve_3d_grid
3D editor grid improvements
Diffstat (limited to 'scene')
-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 445c0d9677..92d2fb1c6d 100644
--- a/scene/resources/material.cpp
+++ b/scene/resources/material.cpp
@@ -735,7 +735,7 @@ void BaseMaterial3D::_update_shader() {
if (flags[FLAG_SRGB_VERTEX_COLOR]) {
code += "\tif (!OUTPUT_IS_SRGB) {\n";
- code += "\t\tCOLOR.rgb = mix( pow((COLOR.rgb + vec3(0.055)) * (1.0 / (1.0 + 0.055)), vec3(2.4)), COLOR.rgb* (1.0 / 12.92), lessThan(COLOR.rgb,vec3(0.04045)) );\n";
+ code += "\t\tCOLOR.rgb = mix(pow((COLOR.rgb + vec3(0.055)) * (1.0 / (1.0 + 0.055)), vec3(2.4)), COLOR.rgb * (1.0 / 12.92), lessThan(COLOR.rgb, vec3(0.04045)));\n";
code += "\t}\n";
}
if (flags[FLAG_USE_POINT_SIZE]) {