This PR removes WebGL1 support. This is a consequence of the removal of WebGL1 support in the upcoming release r163 of three.js (see Migrating Guide r162-r163).
Changes in this PR:
Replace uses of RawShaderMaterial by ShaderMaterial to automatically prepend defines in shaders (given the renderer and material options), as well as built-in uniforms and attributes (see WebGLProgram)
Remove usage of USE_LOGDEPTHBUF_EXT as EXT_frag_depth is part of the core WebGL2 specification.
Description
This PR removes
WebGL1
support. This is a consequence of the removal ofWebGL1
support in the upcoming releaser163
ofthree.js
(see Migrating Guide r162-r163).Changes in this PR:
RawShaderMaterial
byShaderMaterial
to automatically prepend defines in shaders (given the renderer and material options), as well as built-in uniforms and attributes (seeWebGLProgram
)USE_LOGDEPTHBUF_EXT
asEXT_frag_depth
is part of the core WebGL2 specification.Closes #2152.