rebuild scene
var hello = new Mesh(assets,"hello") const bronze = registry.register(new Material({ diffuseCol:[0.45,0.3,0.1], specularCol:[0.5,0.4,0.2], specularHardness:200 })) bvhctx.addMesh(hello, materials.glowglass, affineTransform({xrot:-Math.PI/2,yrot:0,offset:[-7,0,8],scale:[4,4,4]})) for(let i=0; i<100; i++){ let theta = Math.random()*Math.PI*2; let h = Math.random()*Math.random()*50-3 let r = Math.random()+1; let d = Math.random()*15+20; bvhctx.addCircle([Math.cos(theta)*d,h,-Math.sin(theta)*d],r,discretechoice([1,1],[materials.glass,materials.glowglass])) } sun.setSunPos(10,0.15,-0.665) objs.cam.params.loc = [-0.4015644487774006, 3.774999999999998, 1.810504893064371] objs.cam.params.vdir = [0.05250000000000002, -0.315] objs.cam.notifyUpdate()