Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/gpu/shaders/gpu_shader_material.glsl')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_material.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_material.glsl b/source/blender/gpu/shaders/gpu_shader_material.glsl
index 5ec24ec7086..acd28789364 100644
--- a/source/blender/gpu/shaders/gpu_shader_material.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_material.glsl
@@ -400,7 +400,8 @@ void map_range(
}
}
-vec3 safe_divide(vec3 a, vec3 b) {
+vec3 safe_divide(vec3 a, vec3 b)
+{
return vec3((b.x != 0.0) ? a.x / b.x : 0.0,
(b.y != 0.0) ? a.y / b.y : 0.0,
(b.z != 0.0) ? a.z / b.z : 0.0);