File tree Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Expand file tree Collapse file tree 1 file changed +14
-12
lines changed Original file line number Diff line number Diff line change 159159 scene . environment = texture ;
160160 scene . environmentIntensity = 2 ;
161161
162- } ) ;
162+ for ( let x = 0 ; x < WoodGenuses . length ; x ++ ) {
163163
164- for ( let x = 0 ; x < WoodGenuses . length ; x ++ ) {
164+ for ( let y = 0 ; y < Finishes . length ; y ++ ) {
165165
166- for ( let y = 0 ; y < Finishes . length ; y ++ ) {
166+ const cube = add_wood ( x , y , text_mat ) ;
167+ base . add ( cube ) ;
168+
169+ await new Promise ( resolve => setTimeout ( resolve , 0 ) ) ;
170+
171+ }
172+
173+ }
174+
175+ } ) ;
167176
168- const cube = add_wood ( x , y , text_mat ) ;
169- base . add ( cube ) ;
170- await new Promise ( resolve => setTimeout ( resolve , 0 ) ) ;
171-
172- }
173-
174- }
175-
176177 }
177178
178179 function render ( ) {
179180
180181 controls . update ( ) ;
181182 stats . update ( ) ;
182- return renderer . renderAsync ( scene , camera ) ;
183+
184+ renderer . render ( scene , camera ) ;
183185
184186 }
185187
You can’t perform that action at this time.
0 commit comments