Closed ianmackenzie closed 4 years ago
Following up from https://github.com/elm-community/webgl/pull/48, https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/WebGL_best_practices lists OES_standard_derivatives as a "universally supported WebGL 1 extension". So it should be fairly safe to add
OES_standard_derivatives
gl.getExtension('OES_standard_derivatives');
to the JS context initialization code and prepend
#extension GL_OES_standard_derivatives : enable
to each generated fragment shader. This would then open up a bunch of cool possibilities for things like edge highlighting.
Following up from https://github.com/elm-community/webgl/pull/48, https://developer.mozilla.org/en-US/docs/Web/API/WebGL_API/WebGL_best_practices lists
OES_standard_derivatives
as a "universally supported WebGL 1 extension". So it should be fairly safe to addto the JS context initialization code and prepend
to each generated fragment shader. This would then open up a bunch of cool possibilities for things like edge highlighting.