Skip to content

Commit

Permalink
fix: spotlight shader code update + example fix (#79)
Browse files Browse the repository at this point in the history
* fix: sync shader code with drei

* fix: update spotlight example
  • Loading branch information
vis-prime authored Dec 12, 2024
1 parent ff415d4 commit 9816a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .storybook/stories/volumetricSpotlight.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 9816a31

Please sign in to comment.