[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Need to start getting serious about shaders

----- "Mark Callow" <callow_mark@hicorp.co.jp> wrote:

> On 12/06/2010 23:26, Chris Marrin wrote:
> > 1) doing math between floats and ints without an explicit cast
> (allowed on some NVidia drivers but not ATI on Mac)
> It's not really relevant for WebGL but you have to go as far back as the
> very first version of GLSL for desktop, i.e. v1.10, to find no implicit
> casting. Since v1.20, int expressions can be implicitly converted to
> float but not vice-versa. Without knowing the expression involved it is
> not possible say if you are suffering from a very old ATI driver or a
> buggy driver (either ATI or NVidia).

Unless the shader included a #version directive though, it should have been treated as 110 and the lack of casting should have failed.  Granted, not having implicit casting is a little annoying, but GLSL ES doesn't have them, so..

   - Vlad
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email: