Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 31 additions & 9 deletions examples/jsm/loaders/MaterialXLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -886,17 +886,39 @@ class MaterialXNode {
material.specularIntensityNode = specularIntensityNode || float( 0.5 );
material.specularColorNode = specularColorNode || color( 1.0, 1.0, 1.0 );
material.iorNode = iorNode || float( 1.5 );
material.anisotropyNode = anisotropyNode || float( 0 );
material.anisotropyRotationNode = anisotropyRotationNode || float( 0 );
material.transmissionNode = transmissionNode || float( 0 );
material.transmissionColorNode = transmissionColorNode || color( 1.0, 1.0, 1.0 );

if ( anisotropyNode !== null ) {

material.anisotropyNode = anisotropyNode;
material.anisotropyRotationNode = anisotropyRotationNode || float( 0 );

}

if ( transmissionNode !== null ) {

material.transmissionNode = transmissionNode;
material.transmissionColorNode = transmissionColorNode || color( 1.0, 1.0, 1.0 );

}

material.thinFilmThicknessNode = thinFilmThicknessNode || float( 0 );
material.thinFilmIorNode = thinFilmIorNode || float( 1.5 );
material.sheenNode = sheenNode || float( 0 );
material.sheenColorNode = sheenColorNode || color( 1.0, 1.0, 1.0 );
material.sheenRoughnessNode = sheenRoughnessNode || float( 0.5 );
material.clearcoatNode = clearcoatNode || float( 0 );
material.clearcoatRoughnessNode = clearcoatRoughnessNode || float( 0 );

if ( sheenNode !== null ) {

material.sheenNode = sheenNode;
material.sheenColorNode = sheenColorNode || color( 1.0, 1.0, 1.0 );
material.sheenRoughnessNode = sheenRoughnessNode || float( 0.5 );

}

if ( clearcoatNode !== null ) {

material.clearcoatNode = clearcoatNode;
material.clearcoatRoughnessNode = clearcoatRoughnessNode || float( 0 );

}

if ( normalNode ) material.normalNode = normalNode;
if ( emissiveNode ) material.emissiveNode = emissiveNode;

Expand Down
4 changes: 2 additions & 2 deletions examples/jsm/tsl/display/SSSNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ let _rendererState;
*
* - Ideally the maximum shadow length should not exceed `1` meter. Otherwise the effect gets
* computationally very expensive since more samples during the ray marching process are evaluated.
* You can mitigate this issue by reducing the `quality` paramter.
* You can mitigate this issue by reducing the `quality` parameter.
* - The effect can only be used with a single directional light, the main light of your scene.
* This main light usually represents the sun or daylight.
* - Like other Screen-Space techniques SSS can only honor objects in the shadowing computation that
Expand Down Expand Up @@ -121,7 +121,7 @@ class SSSNode extends TempNode {

/**
* Whether to use temporal filtering or not. Setting this property to
* `true` requires the usage of `TRAANode`. This will help to reduce noice
* `true` requires the usage of `TRAANode`. This will help to reduce noise
* although it introduces typical TAA artifacts like ghosting and temporal
* instabilities.
*
Expand Down