Skip to content

Commit

Permalink
Fix gsplat material defines (playcanvas#7054)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored Oct 22, 2024
1 parent b8a1ff3 commit 949b477
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/scene/gsplat/shader-generator-gsplat.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,9 @@ class GSplatShaderGenerator {
splatCoreFS + options.fragment;

const defineMap = new Map();
options.defines.forEach(value => defineMap.set(value, true));
options.defines.forEach((value, key) => {
defineMap.set(key, value);
});

return ShaderUtils.createDefinition(device, {
name: 'SplatShader',
Expand Down

0 comments on commit 949b477

Please sign in to comment.