diff --git a/src/core/shader.js b/src/core/shader.js index 711a416cbc3..77b45cdd6b1 100755 --- a/src/core/shader.js +++ b/src/core/shader.js @@ -55,7 +55,7 @@ Shader.prototype = { this.material = new (this.raw ? THREE.RawShaderMaterial : THREE.ShaderMaterial)({ // attributes: this.attributes, uniforms: this.uniforms, - glslVersion: this.raw ? THREE.GLSL3 : undefined, + glslVersion: this.raw ? THREE.GLSL3 : null, vertexShader: this.vertexShader, fragmentShader: this.fragmentShader });