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

NodeBuilder: Missing property in requires type definition #19895

Merged
merged 3 commits into from
Jul 24, 2020

Conversation

Signed-off-by: martinRenou <martin.renou@gmail.com>
@mrdoob mrdoob requested a review from sunag July 21, 2020 13:07
@mrdoob mrdoob added this to the r119 milestone Jul 21, 2020
@@ -24,6 +24,8 @@ export class NodeBuilder {
color: boolean[];
lights: boolean;
fog: boolean;
transparent: boolean;
irradiance: boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Irradiance in NodeBuilder?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it seems to be used here: https://github.com/mrdoob/three.js/blob/dev/examples/jsm/nodes/materials/nodes/StandardNode.js#L229

But there is a big chance I misunderstand something. I don't quite understand this code base and the logic yet.

@sunag
Copy link
Collaborator

sunag commented Jul 22, 2020

Ahh ok. You can add these properties here:

@martinRenou
Copy link
Contributor Author

Ahh ok. You can add these properties here:

Will do!

Should their default value be false?

@sunag
Copy link
Collaborator

sunag commented Jul 22, 2020

Should their default value be false?

Yes, yes. This values is really defined in .build() process.

@martinRenou
Copy link
Contributor Author

martinRenou commented Jul 22, 2020

Ok :)

@sunag now that I have a bit of you attention, say I want to discuss with you some features or improvements I would like to push on actual code (not only TypeScript this time). Is there a discourse discussion where we could chat or something equivalent?

Signed-off-by: martinRenou <martin.renou@gmail.com>
@sunag
Copy link
Collaborator

sunag commented Jul 22, 2020

@sunag now that I have a bit of you attention, say I want to discuss with you some features or improvements I would like to push on actual code (not only TypeScript this time). Is there a discourse discussion where we could chat or something equivalent?

We can use private message of the twitter for chat? You can add me @sea3dformat

@martinRenou
Copy link
Contributor Author

We can use private message of the twitter for chat? You can add me @sea3dformat

Ahah, great, I followed you a week ago I think. I did not realize @sea3dformat was actually sunag who implemented the amazing NodeMaterials, I would have followed you sooner if I knew :D

I am @martinRenou on Twitter, I guess you only can send the first private message (I don't see any button for sending a PM).

@mrdoob
Copy link
Owner

mrdoob commented Jul 22, 2020

@sunag looks good now?

@sunag sunag self-requested a review July 22, 2020 12:50
Copy link
Collaborator

@sunag sunag left a comment

Choose a reason for hiding this comment

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

@martinRenou Thanks again. Maybe I remove irradiance in the future, I think that this property should have relation only with PBR materials...

@sunag
Copy link
Collaborator

sunag commented Jul 22, 2020

@sunag looks good now?

Yes, yes 👍 👍

@mrdoob mrdoob merged commit 3e4396a into mrdoob:dev Jul 24, 2020
@mrdoob
Copy link
Owner

mrdoob commented Jul 24, 2020

Thanks!

@martinRenou martinRenou deleted the node_builder_requires_type branch July 24, 2020 12:21
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.

3 participants