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: NodeParser and GLSLNodeParser #22641

Merged
merged 4 commits into from
Oct 8, 2021
Merged

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Oct 5, 2021

Description

NodeBuilder can use an individual parser for FunctionNode according to the Renderer.
This allows soon use a WGSLNodeParser to compile the FunctionNodes in WGSL.

Usage

new NodeBuilder( object, renderer, new GLSLNodeParser() );

This contribution is funded by Google via Igalia.

@sunag sunag changed the title Node:Material: NodeParser and GLSLNodeParser NodeMaterial: NodeParser and GLSLNodeParser Oct 5, 2021
Object.defineProperty( this, 'isNodeFunction', { value: true } );
}

get isCount() {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does isCount mean?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be isArray, for arrays input, but we can remove this for now. I added .isConst property too.

@mrdoob mrdoob added this to the r134 milestone Oct 5, 2021
@mrdoob mrdoob merged commit ac3ce47 into mrdoob:dev Oct 8, 2021
@mrdoob
Copy link
Owner

mrdoob commented Oct 8, 2021

Thanks!

@sunag sunag deleted the dev-parsers branch October 8, 2021 13:19
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