Skip to content

Commit

Permalink
Fixed issue after switch to webpack-glsl-loader
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsmalm committed Jul 28, 2021
1 parent 4d8487e commit 504ac08
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/picking/picking-map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class PickingMap {
this._pixels = new Uint8Array(width * height * 4)
this._output = PIXI.RenderTexture.create({ width, height })
this._shader = new MeshShader(
PIXI.Program.from(require("./shader/picking.vert").default, require("./shader/picking.frag").default))
PIXI.Program.from(require("./shader/picking.vert"), require("./shader/picking.frag")))
this._output.framebuffer.addDepthTexture()
}

Expand Down
4 changes: 2 additions & 2 deletions src/shadow/shadow-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export class ShadowFilter {
constructor(public renderer: PIXI.Renderer) {
this._mesh = Mesh3D.createQuad()
this._gaussianBlurShader = new MeshShader(PIXI.Program.from(
require("./shader/gaussian-blur.vert").default,
require("./shader/gaussian-blur.frag").default
require("./shader/gaussian-blur.vert"),
require("./shader/gaussian-blur.frag")
))
}

Expand Down

0 comments on commit 504ac08

Please sign in to comment.