Skip to content

Commit

Permalink
refactor: Fix of [NGRM] - move shader code to local shader module equ…
Browse files Browse the repository at this point in the history
…inor#1646

 - removed defaul export.
  • Loading branch information
nilscb committed Sep 4, 2023
1 parent 4f0d81f commit 660fe89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function getUniforms(opts: any): DecoderUniforms | {} {
return {};
}

export default {
export const decoder = {
name: "decoder",
fs,
getUniforms,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { default as decoder } from "./decoder";
export { default as localPhongLighting } from "./localPhongLighting";
export { decoder } from "./decoder";
export { localPhongLighting } from "./localPhongLighting";
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { fs } from "./lighting.fs.glsl";
import { phongLighting } from "@luma.gl/shadertools";

export default {
export const localPhongLighting = {
name: "localPhongLighting",
fs,
dependencies: [phongLighting],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default class PrivateTriangleLayer extends Layer<PrivateTriangleLayerProp
vs: vsShader,
fs: fsShader,
geometry: new Geometry(this.props.geometryTriangles),
modules: [project, picking, localPhongLighting],
modules: [project, picking, localPhongLighting ],
isInstanced: false, // This only works when set to false.
});

Expand Down

0 comments on commit 660fe89

Please sign in to comment.