Skip to content

Commit

Permalink
Merge pull request #404 from pmndrs/dev
Browse files Browse the repository at this point in the history
Version 6.28.7
  • Loading branch information
vanruesc authored Aug 31, 2022
2 parents 361a505 + eb4eed0 commit 2a94194
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 24 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "postprocessing",
"version": "6.28.6",
"version": "6.28.7",
"description": "A post processing library that provides the means to implement image filter effects for three.js.",
"homepage": "https://github.com/pmndrs/postprocessing",
"main": "build/postprocessing.js",
Expand Down Expand Up @@ -82,7 +82,7 @@
"extends": "aether"
},
"peerDependencies": {
"three": ">= 0.107.0 < 0.144.0"
"three": ">= 0.125.0 < 0.145.0"
},
"devDependencies": {
"@tweakpane/core": "1.x.x",
Expand Down
40 changes: 20 additions & 20 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 11 additions & 2 deletions src/core/EffectComposer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
REVISION,
sRGBEncoding,
UnsignedByteType,
UnsignedIntType,
UnsignedInt248Type,
Vector2,
WebGLMultisampleRenderTarget,
Expand Down Expand Up @@ -290,8 +291,16 @@ export class EffectComposer {
this.inputBuffer.depthTexture = depthTexture;
this.inputBuffer.dispose();

depthTexture.format = DepthStencilFormat;
depthTexture.type = UnsignedInt248Type;
if(this.inputBuffer.stencilBuffer) {

depthTexture.format = DepthStencilFormat;
depthTexture.type = UnsignedInt248Type;

} else {

depthTexture.type = UnsignedIntType;

}

return depthTexture;

Expand Down

0 comments on commit 2a94194

Please sign in to comment.