Re: [w3c/webcomponents] Considering Shader Module Types (#853)

Based on the spec it seems shaders are associated with a specific rendering context: https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.8

We'd need do something about that, or alternatively just a way to import plaintext e.g. `import shader from './shader.glsl' as string;` then they can instantiate the shader objects in each context themselves.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/853#issuecomment-553247365

Received on Wednesday, 13 November 2019 05:36:26 UTC