Skip to content

Notes · Lab Notes

`patch` and `half` are reserved words in GLSL ES 3.00

· webgl · glsl

float patch = … compiled in my head but not on the GPU: WebGL2 shaders reject patch, half and a few other future-reserved words with a terse "Illegal use of reserved word". Two separate bugs this week, same cause. Rename the variable and move on.