Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ibgreen committed Apr 25, 2024
1 parent 9f38616 commit 12fe065
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions modules/core/src/effects/post-process-effect.ts
@@ -1,5 +1,5 @@
import type {Device, Framebuffer} from '@luma.gl/core';
import {normalizeShaderModule, ShaderPass} from '@luma.gl/shadertools';
import {initializeShaderModule, ShaderPass} from '@luma.gl/shadertools';

import ScreenPass from '../passes/screen-pass';

Expand All @@ -14,7 +14,7 @@ export default class PostProcessEffect<ShaderPassT extends ShaderPass> implement
constructor(module: ShaderPassT, props: ShaderPassT['props']) {
this.id = `${module.name}-pass`;
this.props = props;
normalizeShaderModule(module);
initializeShaderModule(module);
this.module = module;
}

Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/passes/shadow-pass.ts
Expand Up @@ -36,8 +36,8 @@ export default class ShadowPass extends LayersPass {
mipmaps: false,

// TODO fix getWebGLTextureParameters() in luma to avoid passing deprecated parameters
dataFormat: 6402, // gl.DEPTH_COMPONENT
type: 5125 // gl.UNSIGNED_INT
// dataFormat: 6402, // gl.DEPTH_COMPONENT
// type: 5125 // gl.UNSIGNED_INT
});

this.fbo = device.createFramebuffer({
Expand Down
1 change: 0 additions & 1 deletion modules/core/src/utils/texture.ts
Expand Up @@ -29,7 +29,6 @@ export function createTexture(
sampler: SamplerProps
): Texture | null {
if (image instanceof Texture) {
// @ts-expect-error This type error seems like it shouldn't happen...
return image;
} else if (image.constructor && image.constructor.name !== 'Object') {
// Browser object
Expand Down
Expand Up @@ -251,8 +251,8 @@ export default class CollisionFilterEffect implements Effect {
mipmaps: false,

// TODO fix getWebGLTextureParameters() in luma to avoid passing deprecated parameters
dataFormat: 6402, // gl.DEPTH_COMPONENT
type: 5125 // gl.UNSIGNED_INT
// dataFormat: 6402, // gl.DEPTH_COMPONENT
// type: 5125 // gl.UNSIGNED_INT
});
this.collisionFBOs[collisionGroup] = device.createFramebuffer({
id: `collision-${collisionGroup}`,
Expand Down

0 comments on commit 12fe065

Please sign in to comment.