Skip to content

Commit

Permalink
fix: cannot append to UniformsLib
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaellis committed Mar 4, 2021
1 parent 95da4b2 commit 1d08c90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lines/LineMaterial.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export type LineMaterialParameters = ShaderMaterialParameters & {
resolution?: Vector2
}

UniformsLib.line = {
export const LineUniforms = {
linewidth: { value: 1 },
resolution: { value: new Vector2(1, 1) },
dashScale: { value: 1 },
Expand All @@ -24,7 +24,7 @@ UniformsLib.line = {
}

ShaderLib['line'] = {
uniforms: UniformsUtils.merge([UniformsLib.common, UniformsLib.fog, UniformsLib.line]),
uniforms: UniformsUtils.merge([UniformsLib.common, UniformsLib.fog, LineUniforms]),

vertexShader: /* glsl */ `
#include <common>
Expand Down

0 comments on commit 1d08c90

Please sign in to comment.