Skip to content

Commit

Permalink
Merge pull request #1352 from INEEDSSD/LayaAir_3.1
Browse files Browse the repository at this point in the history
fix: Fixed post-processing exception issue due to not supporting dept…
  • Loading branch information
LayaCharley authored Feb 29, 2024
2 parents 84c1ae7 + 69b5731 commit 85633be
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/layaAir/laya/d3/core/Camera.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,9 @@ export class Camera extends BaseCamera {
if (this._postProcess && this._postProcess.enable) {
cameraDepthMode |= this._postProcess.cameraDepthTextureMode;
}
if (!LayaGL.renderEngine.getCapable(RenderCapable.RenderTextureFormat_Depth)) {
cameraDepthMode &= ~DepthTextureMode.Depth;
}
if ((cameraDepthMode & DepthTextureMode.Depth) != 0) {
// todo
if (!this.canblitDepth || !this._internalRenderTexture.depthStencilTexture) {
Expand Down

0 comments on commit 85633be

Please sign in to comment.