1- import GUI from ' lil-gui' ;
1+ import GUI from " lil-gui" ;
22import { Common } from "./Common" ;
33import {
44 Color ,
55 Fog ,
66 Mesh ,
77 PointLight ,
88 PointLightHelper ,
9- SphereGeometry
9+ SphereGeometry ,
1010} from "three" ;
11- import { Directions } from "../lib/chunk/WavyAnimationChunk" ;
12- import { CrossGridMaterial } from "../lib/crossGrid/CrossGridMaterial" ;
11+ import { CrossGridMaterial , Directions } from ".." ;
1312import { CommonGUI } from "./CommonGUI" ;
14- import { RAFTicker , RAFTickerEventType } from "raf-ticker" ;
13+ import { RAFTicker , RAFTickerEventType } from "@masatomakino/ raf-ticker" ;
1514
1615export class StudyCrossGrid {
1716 constructor ( ) {
@@ -26,7 +25,7 @@ export class StudyCrossGrid {
2625 const control = Common . initControl ( camera , renderer ) ;
2726 Common . initHelper ( scene ) ;
2827 const mat = this . initObject ( scene ) ;
29- RAFTicker . addEventListener ( RAFTickerEventType . tick , e => {
28+ RAFTicker . addEventListener ( RAFTickerEventType . tick , ( e ) => {
3029 renderer . render ( scene , camera ) ;
3130 } ) ;
3231 this . initGUI ( mat ) ;
@@ -42,7 +41,7 @@ export class StudyCrossGrid {
4241 const geo = new SphereGeometry ( 10 , 64 , 64 ) ;
4342
4443 const mat = new CrossGridMaterial ( {
45- fog : scene . fog !== undefined
44+ fog : scene . fog !== undefined ,
4645 } ) ;
4746 mat . color = new Color ( 0xff6666 ) ;
4847 mat . direction = Directions . vertical ;
0 commit comments