Skip to content

Commit

Permalink
allow multiple copies of the same deck
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Aug 2, 2019
1 parent 3c795cb commit 4f8bf81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/core/src/shaderlib/index.js
Expand Up @@ -32,7 +32,9 @@ import project64 from './project64/project64';
import shadow from './shadow/shadow';

export function initializeShaderModules() {
registerShaderModules([fp32, project, project32, gouraudlighting, phonglighting, picking]);
registerShaderModules([fp32, project, project32, gouraudlighting, phonglighting, picking], {
ignoreMultipleRegistrations: true
});

setDefaultShaderModules([geometry, project]);

Expand Down

0 comments on commit 4f8bf81

Please sign in to comment.