[osg-submissions] fix for the softshadowmap-shader for OS X

Robert Osfield robert.osfield at gmail.com
Wed Aug 15 07:45:46 PDT 2007


Thanks Stephan, changes now merged and submitted to SVN.

On 8/14/07, Stephan Maximilian Huber <ratzfatz at digitalmind.de> wrote:
> 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
>
>
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>
>


More information about the osg-submissions mailing list