1
0
Fork 0

Intel GPUs seem to be more picky...

This commit is contained in:
Thorsten Renk 2015-02-18 17:27:37 +02:00
parent 5d9f5f3a9e
commit 27740a17f7

View file

@ -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;}