diff options
author | kcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2005-08-26 21:18:36 +0000 |
---|---|---|
committer | kcr <kcr@28c7f869-5b4e-e670-f602-82bfaf57f300> | 2005-08-26 21:18:36 +0000 |
commit | 8aa0ec72413e83cd8e36afc4dd7afcd9f7d8e340 (patch) | |
tree | 679d9535fc0313cba50c499fb92a64bb46999fc7 | |
parent | 2333ad1650a570bc665f964b742782679df06a68 (diff) |
Fix shader error; we didn't catch this sooner thanks to a too-permissive NVIDIA compiler. :-(
-rw-r--r-- | src/GLSLShaderTest/wood.frag | 2 | ||||
-rw-r--r-- | 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) { |