[osg-submissions] fix for the softshadowmap-shader for OS X
Stephan Maximilian Huber
ratzfatz at digitalmind.de
Tue Aug 14 05:53:26 PDT 2007
Hi Robert,
the softshadowmap-implementation does not compile on os x, to be more
precise, the shader does not compile on os x because of some
type-conflicts ala "can not convert from const int to const float"
So I changed the offending lines to force the type of the vars. It works
now on OS X (albeit very slowly, 3fps on a 7300), perhaps you find the
changes useful. Note: perhaps there is a better way in shaders to
cast/convert from int to float and viceversa.
cheers,
Stephan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SoftShadowMap.cpp.zip
Type: application/x-zip-compressed
Size: 5181 bytes
Desc: not available
Url : http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20070814/7348da05/attachment.bin
More information about the osg-submissions
mailing list