Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeMaterial: Added support to custom MRT depth #29117

Merged
merged 3 commits into from
Aug 12, 2024
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Aug 12, 2024

Related issue: #29106 (comment)

Description

Added support to custom MRT depth:

const scenePass = pass( scene, camera );

scenePass.setMRT( mrt( {
	output,
	depth: depth // change depth output pass if you want
} ) );

@sunag sunag added this to the r168 milestone Aug 12, 2024
Copy link

github-actions bot commented Aug 12, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
685.1 kB (169.6 kB) 685.1 kB (169.6 kB) +0 B

🌳 Bundle size after tree-shaking

Minimal build including a renderer, camera, empty scene, and dependencies.

Filesize dev Filesize PR Diff
462 kB (111.4 kB) 462 kB (111.4 kB) +0 B

@sunag sunag marked this pull request as ready for review August 12, 2024 03:09
@sunag sunag merged commit c2373ef into mrdoob:dev Aug 12, 2024
12 checks passed
@sunag sunag deleted the dev-depth2 branch August 12, 2024 03:13
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.

1 participant