Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Apr 25, 2024
1 parent fc6d437 commit 9f2131c
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions modules/shadertools/test/lib/shader-assembler.spec.ts
Expand Up @@ -75,18 +75,17 @@ test('ShaderAssembler#hooks', t => {

t.ok(preHookShaders !== assemblyResults, 'Adding hooks changes hash');

const pickingInjection = Object.assign(
{
inject: {
'vs:LUMAGL_pickColor': 'picking_setPickingColor(color.rgb);',
'fs:LUMAGL_fragmentColor': {
injection: 'color = picking_filterColor(color);',
order: Number.POSITIVE_INFINITY
}
const pickingInjection = {
...picking,
instance: undefined,
inject: {
'vs:LUMAGL_pickColor': 'picking_setPickingColor(color.rgb);',
'fs:LUMAGL_fragmentColor': {
injection: 'color = picking_filterColor(color);',
order: Number.POSITIVE_INFINITY
}
},
picking
);
}
};

const noModuleProgram = shaderAssembler.assembleGLSLShaderPair({platformInfo, vs, fs});

Expand Down

0 comments on commit 9f2131c

Please sign in to comment.