From 8aa0ec72413e83cd8e36afc4dd7afcd9f7d8e340 Mon Sep 17 00:00:00 2001 From: kcr Date: Fri, 26 Aug 2005 21:18:36 +0000 Subject: Fix shader error; we didn't catch this sooner thanks to a too-permissive NVIDIA compiler. :-( --- src/GLSLShaderTest/wood.frag | 2 +- src/GLSLShaderTest/wood.vert | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/GLSLShaderTest/wood.frag b/src/GLSLShaderTest/wood.frag index 50ff2d5..eecf91f 100644 --- a/src/GLSLShaderTest/wood.frag +++ b/src/GLSLShaderTest/wood.frag @@ -11,7 +11,7 @@ //uniform float GrainSizeRecip; //uniform vec3 DarkColor; //uniform vec3 spread; -const float GrainSizeRecip = 1; +const float GrainSizeRecip = 1.0; const vec3 DarkColor = vec3 (0.6, 0.3, 0.1); const vec3 spread = vec3 (0.15, 0.075, 0.0); diff --git a/src/GLSLShaderTest/wood.vert b/src/GLSLShaderTest/wood.vert index b107bad..84651aa 100644 --- a/src/GLSLShaderTest/wood.vert +++ b/src/GLSLShaderTest/wood.vert @@ -13,7 +13,7 @@ varying vec3 Position; //uniform vec3 LightPosition; //uniform float Scale; const vec3 LightPosition = vec3 (0.0,0.0,0.4); -const float Scale = 1; +const float Scale = 1.0; void main(void) { -- cgit v1.2.3