From 27740a17f710e465ca4e1d45df28d4647ec8be56 Mon Sep 17 00:00:00 2001 From: Thorsten Renk Date: Wed, 18 Feb 2015 17:27:37 +0200 Subject: [PATCH] Intel GPUs seem to be more picky... --- Shaders/tree-ALS.vert | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Shaders/tree-ALS.vert b/Shaders/tree-ALS.vert index 65c7e4136..2da7e3a82 100644 --- a/Shaders/tree-ALS.vert +++ b/Shaders/tree-ALS.vert @@ -84,7 +84,7 @@ void main() float texFract = floor(fract(gl_MultiTexCoord0.x) * numVarieties) / numVarieties; // determine whether the tree changes color in autumn - if (texFract < (float) num_deciduous_trees/numVarieties) {autumn_flag = 0.5 + fract(gl_Color.x);} + if (texFract < float(num_deciduous_trees)/float(numVarieties)) {autumn_flag = 0.5 + fract(gl_Color.x);} else {autumn_flag = 0.0;}