Skip to content

Commit

Permalink
Use correct default value (null) for glslVersion for non-raw shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
mrxz committed Nov 17, 2023
1 parent 97a0b81 commit dd0512d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/shader.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
Expand Down

0 comments on commit dd0512d

Please sign in to comment.