Skip to content

Commit 2e586bc

Browse files
committed
Add cellophane elbow crab
1 parent 7925ea7 commit 2e586bc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

example/index.html

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,35 @@
281281

282282
}
283283
},
284+
'Elbow Crab Sculpture': {
285+
url: 'https://raw.githubusercontent.com/gkjohnson/3d-demo-data/main/models/threedscans/Elbow_Crab.glb',
286+
rotation: [ 2.5 * Math.PI / 4, Math.PI, 0 ],
287+
credit: 'Model courtesy of threedscans.com.',
288+
289+
bounces: 15,
290+
floorColor: '#eeeeee',
291+
floorRoughness: 1.0,
292+
floorMetalness: 0.0,
293+
gradientTop: '#eeeeee',
294+
gradientBot: '#eeeeee',
295+
296+
postProcess( model ) {
297+
298+
let mat = new MeshPhysicalMaterial( {
299+
color: 0xcc8888,
300+
roughness: 0.15,
301+
transmission: 1,
302+
ior: 1.5,
303+
} ) ;
304+
305+
model.traverse( c => {
306+
307+
if ( c.material ) c.material = mat;
308+
309+
} );
310+
311+
}
312+
},
284313
'Japanese Bridge Garden': {
285314
url: 'https://raw.githubusercontent.com/gkjohnson/3d-demo-data/main/models/japanese-bridge-garden/scene.glb',
286315
credit: 'Model by "kristenlee" on Sketchfab.',

0 commit comments

Comments
 (0)