Show
Ignore:
Timestamp:
04/03/09 11:54:15 (5 years ago)
Author:
robert
Message:

Tweaks to shader to fix warnings on with ATI drivers

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgdrawinstanced/osgdrawinstanced.cpp

    r9530 r9974  
    6767            // Using the instance ID, generate "texture coords" for this instance. 
    6868            "vec2 tC; \n" 
    69             "const float r = gl_InstanceID / 32.; \n" 
     69            "float r = float(gl_InstanceID) / 32.; \n" 
    7070            "tC.s = fract( r ); tC.t = floor( r ) / 32.; \n" 
    7171            // Get the color from the OSG logo.