Skip to content

Commit

Permalink
Remove unnecessary async/await (google#3212)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukolsak authored Feb 23, 2022
1 parent 6040670 commit 95006dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/model-viewer/src/three-components/TextureUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default class TextureUtils extends EventDispatcher {

cubeCamera.update(renderer, scene);

await this.blurCubemap(cubeTarget, GENERATED_SIGMA);
this.blurCubemap(cubeTarget, GENERATED_SIGMA);

renderer.toneMapping = toneMapping;
renderer.outputEncoding = outputEncoding;
Expand Down Expand Up @@ -210,7 +210,7 @@ export default class TextureUtils extends EventDispatcher {
return this.generatedEnvironmentMapAlt;
}

private async blurCubemap(cubeTarget: WebGLCubeRenderTarget, sigma: number) {
private blurCubemap(cubeTarget: WebGLCubeRenderTarget, sigma: number) {
if (this.blurMaterial == null) {
this.blurMaterial = this.getBlurShader(MAX_SAMPLES);
const box = new BoxBufferGeometry();
Expand All @@ -229,7 +229,7 @@ export default class TextureUtils extends EventDispatcher {
/** tempTarget.dispose(); */
}

private async halfblur(
private halfblur(
targetIn: WebGLCubeRenderTarget, targetOut: WebGLCubeRenderTarget,
sigmaRadians: number, direction: 'latitudinal'|'longitudinal') {
// Number of standard deviations at which to cut off the discrete
Expand Down

0 comments on commit 95006dc

Please sign in to comment.