From 9816a31fde813b8726ca82fa73f60545d95c1ea6 Mon Sep 17 00:00:00 2001 From: VishaL <119810373+vis-prime@users.noreply.github.com> Date: Fri, 13 Dec 2024 00:29:45 +0530 Subject: [PATCH] fix: spotlight shader code update + example fix (#79) * fix: sync shader code with drei * fix: update spotlight example --- .storybook/stories/volumetricSpotlight.stories.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.storybook/stories/volumetricSpotlight.stories.ts b/.storybook/stories/volumetricSpotlight.stories.ts index 17d8518..38f60a2 100644 --- a/.storybook/stories/volumetricSpotlight.stories.ts +++ b/.storybook/stories/volumetricSpotlight.stories.ts @@ -169,7 +169,7 @@ function renderDepth() { */ function depthOnResize() { renderer.getSize(rendererSize) - rendererSize.multiplyScalar(renderer.getPixelRatio()) + rendererSize.multiplyScalar(renderer.getPixelRatio()) // depth texture will get misaligned if pixel is not multiplied volumeMaterial.resolution.copy(rendererSize) }