Skip to content

Commit

Permalink
Fix to fringe offset to be independent of the render target resolution (
Browse files Browse the repository at this point in the history
#5911)

* Fix to fringe offset to be independent of the render target resolution

* Update extras/render-passes/render-pass-compose.js

Co-authored-by: KPal <48248865+kpal81xd@users.noreply.github.com>

---------

Co-authored-by: Martin Valigursky <mvaligursky@snapchat.com>
Co-authored-by: KPal <48248865+kpal81xd@users.noreply.github.com>
  • Loading branch information
3 people authored Dec 22, 2023
1 parent c65677c commit dfc4512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extras/render-passes/render-pass-compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,8 @@ class RenderPassCompose extends RenderPassShaderQuad {
}

if (this._fringingEnabled) {
this.fringingIntensityId.setValue(this.fringingIntensity / this.sceneTexture.height);
// relative to a fixed texture resolution to preserve size regardless of the resolution
this.fringingIntensityId.setValue(this.fringingIntensity / 1024);
}

super.execute();
Expand Down

0 comments on commit dfc4512

Please sign in to comment.