Skip to content

Commit bbe74f5

Browse files
committed
A shader can declare it's glsl3
1 parent 16747e8 commit bbe74f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/shader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ Shader.prototype = {
5555
this.material = new (this.raw ? THREE.RawShaderMaterial : THREE.ShaderMaterial)({
5656
// attributes: this.attributes,
5757
uniforms: this.uniforms,
58-
glslVersion: this.raw ? THREE.GLSL3 : null,
58+
glslVersion: this.raw || this.glsl3 ? THREE.GLSL3 : null,
5959
vertexShader: this.vertexShader,
6060
fragmentShader: this.fragmentShader
6161
});

0 commit comments

Comments
 (0)