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

TSL: Introduce Node.updateAfter #28552

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

RenaudRohlinger
Copy link
Collaborator

@RenaudRohlinger RenaudRohlinger commented Jun 4, 2024

Description

Just like onAfterRender in the WebGLRenderer, this PR adds a new callback to the node system that happens just after an object has been rendered.

Example usage:

const modelMatrixPrev = uniform( new Matrix4() );
modelMatrixPrev.updateAfterType = NodeUpdateType.OBJECT;
modelMatrixPrev.updateAfter = function ( { object } ) {

    this.value.copy( object.matrixWorld );

};

This contribution is funded by Utsubo

@RenaudRohlinger RenaudRohlinger requested a review from sunag June 4, 2024 08:16
@sunag sunag added this to the r166 milestone Jun 4, 2024
@sunag sunag merged commit f805325 into mrdoob:dev Jun 4, 2024
11 checks passed
@sunag sunag changed the title WebGPURenderer: Introduce Node.updateAfter TSL: Introduce Node.updateAfter Jun 4, 2024
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