mikialex / artgl

TypeScript 3D framework
54 stars 7 forks source link

WebGL2 break OES_standard_derivatives #65

Closed mikialex closed 4 years ago

mikialex commented 4 years ago

As we move to use webgl2 by default, the shader system is still use 1. Issue is: According to https://developer.mozilla.org/en-US/docs/Web/API/OES_standard_derivatives , this entension in webgl2 context is only avaliable in #version 300 es, and how to enable it is different.

We should make shadergraph and shader system target to es300 and figure out fall back solutions.

mikialex commented 4 years ago

fixed