@@ -39,7 +39,7 @@ const instance = new AUTO.ThreeAuto(undefined, {
3939 {
4040 name : "preview" ,
4141 type : "GLTF" ,
42- path : "./models/preview_opt .glb" ,
42+ path : "./models/community .glb" ,
4343 show : true ,
4444 } ,
4545 {
@@ -48,43 +48,43 @@ const instance = new AUTO.ThreeAuto(undefined, {
4848 path : '/env/artist_workshop_1k.f6da9025.hdr'
4949 }
5050 ] ,
51- shadow : {
52- show : true ,
53- width : 1600 ,
54- height : 1600 ,
55- color : '#000' ,
56- opacity : 0.3 ,
57- position : { x : 0 , y : 0.1 , z : 0 } ,
58- rotation : { x : - Math . PI / 2 , y : 0 , z : 0 } ,
59- } ,
60- light : [
61- {
62- type : "directional" ,
63- color : "#fff" ,
64- intensity : 1 ,
65- distance : 500 ,
66- helper : false ,
67- helperSize : 5 ,
68- lightName : "spot-light" ,
69- castShadow : true ,
70- shadow : {
71- mapSizeWidth : 1024 ,
72- mapSizeHeight : 1024 ,
73- cameraLeft : - 500 ,
74- cameraTop : 500 ,
75- cameraBottom : - 500 ,
76- cameraRight : 500 ,
77- cameraNear : 0.1 ,
78- cameraFar : 500 ,
79- radius : 100 ,
80- bias : - 0.004 ,
81- normalBias : 0.027
82- } ,
83- position : {
84- x : - 100 , y : 300 , z : 165 ,
85- }
86- } ,
87- ] ,
51+ // shadow: {
52+ // show: true,
53+ // width: 1600,
54+ // height: 1600,
55+ // color: '#000',
56+ // opacity: 0.3,
57+ // position: { x: 0, y: 0.1, z: 0 },
58+ // rotation: { x: -Math.PI / 2, y: 0, z: 0 },
59+ // },
60+ // light: [
61+ // {
62+ // type: "directional",
63+ // color: "#fff",
64+ // intensity: 1,
65+ // distance: 500,
66+ // helper: false,
67+ // helperSize: 5,
68+ // lightName: "spot-light",
69+ // castShadow: true,
70+ // shadow: {
71+ // mapSizeWidth: 1024,
72+ // mapSizeHeight: 1024,
73+ // cameraLeft: -500,
74+ // cameraTop: 500,
75+ // cameraBottom: -500,
76+ // cameraRight: 500,
77+ // cameraNear: 0.1,
78+ // cameraFar: 500,
79+ // radius: 100,
80+ // bias: -0.004,
81+ // normalBias: 0.027
82+ // },
83+ // position: {
84+ // x: -100, y: 300, z: 165,
85+ // }
86+ // },
87+ // ],
8888} ) ;
8989
9090const checkMeshShadow = ( origin : any ) => {
@@ -103,14 +103,16 @@ instance.resource?.on('ready', () => {
103103 // preview.scene.position.y = -100
104104 preview . scene . position . z = 120
105105 preview . scene . children . forEach ( ( item : any ) => {
106- console . log ( item ) ;
106+ // console.log(item);
107107 item . castShadow = true
108108 checkMeshShadow ( item . children )
109109 } )
110110 instance . scene . add ( preview . scene )
111111 const env = instance . resource ?. items . get ( 'env' )
112112 env . mapping = THREE . EquirectangularReflectionMapping
113113 instance . scene . environment = env
114+ console . log ( instance . _renderer , 33333 ) ;
115+
114116} )
115117
116118const liftDetail = [
0 commit comments