Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
gkjohnson committed Jul 20, 2024
1 parent e9c15b9 commit 2ccf57e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion example/utils/MaterialOrbLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { MeshPhysicalMaterial, RectAreaLight, SRGBColorSpace } from 'three';
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';

// TODO: this scene should technically be rendered at a 1000x smaller scale
// TODO: it would be nice to round the orb 3d model a bit more

const ORB_SCENE_URL = 'https://raw.githubusercontent.com/gkjohnson/3d-demo-data/main/models/usd-shader-ball/usd-shaderball-scene.glb';
function assignWatts( light, watts ) {
Expand Down Expand Up @@ -59,9 +60,10 @@ export class MaterialOrbSceneLoader {

}

// TODO: this should be colored by a texture that says "Sub-Surface Bar"
if ( c.name === 'sss_bars' ) {

c.material.color.setRGB( 0.18, 0.18, 0.18, SRGBColorSpace );
c.material.color.setRGB( 0.01, 0.01, 0.01, SRGBColorSpace );

}

Expand Down

0 comments on commit 2ccf57e

Please sign in to comment.