Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In order to simplify I would like to propose some changes.
Root nodes like
NormalNode
,ReflectNode
andCubeTextureNode
we can put in your external interface only globals parameters, like inNormalNode
:VIEW
,LOCAL
andGLOBAL
and try preventCLEARCOAT
,BENT
or others characteristics of PBR to that makes this interface a bit more simple to learn and make this a bit more compatible with others nodes likePhongNode
, since that this can be added incontext
.Other important thing is the
anisotropy.code
and your sequence. In this case, It is not a complex shader graph, but in others case variables are declared for optimization or other custom nodes isgenerate
inanisotropy.code
.anisotropy.result
return only inline(final) results.The sequence of
analyze
andflow
is very important togenerate
the correct structure of the code, allanalyze
should be executed before of firstflow
, and follow the exact sequence. For example:sheen.code
and sequence I revised in mrdoob#17265