File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 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.' ,
You can’t perform that action at this time.
0 commit comments