You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A WebGL shader containing a uniform bool will always be assigned to false when the --optimize compiler flag is used.
In the following example (lifted from the elm-explorations/webgl's triangle.elm), I have a triangle that should be rendered with the color black if the uniform value noColor is set to true. If you run elm make src/Main.elm this will be the case. Running it with elm make src/Main.elm --optimize will incorrectly make it colorful.
The reason why this breaks in the optimize mode, is that the bool property doesn't make it into the conversion map between the minified record field name and the full original name of the uniform.
- bool is not supported but apparently works in non --optimize builds
elm/compiler#1970
- Building examples with --optimize still does not work due to usage of
samplerCube in the forked webgl library
A WebGL shader containing a
uniform bool
will always be assigned to false when the--optimize
compiler flag is used.In the following example (lifted from the elm-explorations/webgl's triangle.elm), I have a triangle that should be rendered with the color black if the uniform value
noColor
is set to true. If you runelm make src/Main.elm
this will be the case. Running it withelm make src/Main.elm --optimize
will incorrectly make it colorful.SSCCE
The text was updated successfully, but these errors were encountered: