Skip to content

Conversation

@Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Aug 1, 2024

Related issue: #28702

Description

After deprecating Material.onBeforeRender() via #28702 multiple devs complained about this change.

As compromise I suggest to restore onBeforeRender() but make it absolutely clear that this callback will only be supported with WebGLRenderer. Similar to onBeforeCompile(). WebGPURenderer with its node material provide alternative workflows.

I've added a comment about this in the documentation and the code (just to be on the safe side).

@github-actions
Copy link

github-actions bot commented Aug 1, 2024

📦 Bundle size

Full ESM build, minified and gzipped.

Filesize dev Filesize PR Diff
684 kB (169.4 kB) 684 kB (169.4 kB) -30 B

🌳 Bundle size after tree-shaking

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

Filesize dev Filesize PR Diff
460.9 kB (111.2 kB) 460.9 kB (111.2 kB) -30 B

@Mugen87 Mugen87 added this to the r168 milestone Aug 1, 2024
@nkallen
Copy link
Contributor

nkallen commented Aug 1, 2024

Thank you!

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