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:
authorTom Musgrove <LetterRip@gmail.com>2010-08-04 02:44:15 +0400
committerTom Musgrove <LetterRip@gmail.com>2010-08-04 02:44:15 +0400
commite2f5f4fa535e64f524082f31139fe358073f8281 (patch)
treef50619b2904f421f57a8670fa9a865fbf4972252 /source/blender/gpu/intern/gpu_shader_material.glsl
parent596952a5e08a835e002783c2af71ccba8965a707 (diff)
removing the f so that glsl shaders work on older cards
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)