Skip to content

Conversation

@FarazzShaikh
Copy link
Contributor

Related issue: N/A

Description

The SSR node breaks with the following error when used with OrthographicCamera. This is because the current code resolves to this._isPerspectiveCamera = uniform( undefined ); as isPerspectiveCamera is undefined on OrthographicCamera.

Error

THREE.TSL: Error: Uniform "null" not declared.

Fixed by ensuring the _isPerspectiveCamera uniform is a boolean.

Broken example on r181:

https://codesandbox.io/p/devbox/cranky-framework-zrtfz3?workspaceId=ws_5NvLnrKyk5Nd2YftNHw3Fy

@Mugen87 Mugen87 added this to the r182 milestone Nov 7, 2025
@Mugen87 Mugen87 merged commit 5b1a17a into mrdoob:dev Nov 7, 2025
7 of 8 checks passed
@Mugen87 Mugen87 changed the title WebGPURenderer - SSRNode: Ensure boolean value for isPerspectiveCamera uniform SSRNode: Ensure boolean value for isPerspectiveCamera uniform. Nov 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants