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: AttributeNode .defaultNode as defaultValue #28406

Merged
merged 1 commit into from
May 17, 2024
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented May 17, 2024

Description

In the example bellow if the attribute normal does not exist will use vec3( 0, 1, 0 ) as default.

Usage:

const normal = attribute( 'normal', 'vec3', vec3( 0, 1, 0 ) );
@sunag sunag added this to the r165 milestone May 17, 2024
@sunag sunag marked this pull request as ready for review May 17, 2024 15:24
@sunag sunag merged commit 229120b into mrdoob:dev May 17, 2024
11 checks passed
@sunag sunag deleted the dev-node-1 branch May 17, 2024 15:28
@sunag sunag changed the title Nodes: AttributeNode .defaultNode as defaultValue May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant