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/intern/gpu_shader_material.glsl')
-rw-r--r--source/blender/gpu/intern/gpu_shader_material.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_material.glsl b/source/blender/gpu/intern/gpu_shader_material.glsl
index d517018e257..cfd35f59478 100644
--- a/source/blender/gpu/intern/gpu_shader_material.glsl
+++ b/source/blender/gpu/intern/gpu_shader_material.glsl
@@ -88,7 +88,7 @@ float linearrgb_to_srgb(float c)
if(c < 0.0031308)
return (c < 0.0)? 0.0: c * 12.92;
else
- return 1.055 * pow(c, 1.0/2.4) - 0.055f;
+ return 1.055 * pow(c, 1.0/2.4) - 0.055;
}
void srgb_to_linearrgb(vec4 col_from, out vec4 col_to)