luma.gl icon indicating copy to clipboard operation
luma.gl copied to clipboard

GLSL100 transpiling fails to convert 'in highp float myVariable'

Open MGraefe opened this issue 3 years ago • 1 comments

Using luma.gl 8.5.10, transpiling of the following line of shader code to GLSL100 leaves the following line unchanged:

in highp float myVariable;

This then produces a compilation error:

ERROR: 'in' : storage qualifier supported in GLSL ES 3.00 and above only

Instead, this line should be transpiled to:

attribute highp float myVariable;

I believe it did so for older luma.gl versions, at least our problems only popped up after updating deck (and thus luma). Probably not really an urgent bug, especially because slapping on 'precision highp float' and calling it a day works just fine on modern platforms and it would probably even work without any precision specifier at all. Just wanted to document this.

MGraefe avatar Jan 20 '22 10:01 MGraefe

I saw this as well: #1624

ilan-gold avatar Feb 23 '22 08:02 ilan-gold