Another Broken PG?

https://www.babylonjs-playground.com/#ZUMAGX#38

this works in 3.3, but nothing later. Im not sure why its giving me a gl_FragColor error?

This is what it drops anything > 3.3

image

defines.push('precision highp float;'); is invalid, it will generate #define precision highp float; in the shader code which can’t be parsed correctly by our parser:

https://playground.babylonjs.com/#ZUMAGX#55

1 Like

Wow what a catch, dude you are a machine.

did they always add #define in front of them? I was under the impression in the past we had to add the #define part, but I might have just been a goober the whole time.

2 Likes

Yes, in the past you had to add #define but I think since 4.2 or 5.0 it is added automatically.

3 Likes