Skip to content

Commit

Permalink
use setBindings in place of setUniforms
Browse files Browse the repository at this point in the history
  • Loading branch information
xinaesthete committed Jun 17, 2024
1 parent a656b2f commit aa15140
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/layers/src/xr-layer/xr-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,14 @@ const XRLayer = class extends Layer {
dtype
});
model
.setUniforms({
// .setUniforms({ // not sure if this change is exactly correct...
// it seems to avert some errors, but I'm not sure if this is a correct way for uniform buffer to be defined.
.setBindings({uniforms: {
...uniforms,
contrastLimits: paddedContrastLimits,
...textures
})
.draw();
}});
model.draw();
}
}

Expand Down

0 comments on commit aa15140

Please sign in to comment.