style: fix all lint warnings
This commit is contained in:
+4
-6
@@ -25,13 +25,11 @@ import {
|
||||
TextureLoader,
|
||||
Color,
|
||||
MeshStandardMaterial,
|
||||
FogExp2
|
||||
} from 'three';
|
||||
import { LUTCubeLoader } from 'three/examples/jsm/loaders/LUTCubeLoader';
|
||||
|
||||
import './page.css';
|
||||
import { createNoise2D } from 'simplex-noise';
|
||||
import { useControls } from 'leva';
|
||||
|
||||
import grassVert from './shaders/grass.vert';
|
||||
import grassFrag from './shaders/grass.frag';
|
||||
@@ -189,8 +187,6 @@ function Grass({
|
||||
const lushColor = new Color('#348a34');
|
||||
const dryColor = new Color('#556b19');
|
||||
|
||||
const chunkRadius = size * Math.sqrt(2);
|
||||
|
||||
let instanceIndex = 0;
|
||||
|
||||
for (let i = 0; i < count; i++) {
|
||||
@@ -340,7 +336,7 @@ function Grass({
|
||||
materialRef.current.userData.shader = shader;
|
||||
}
|
||||
},
|
||||
[grassLOD]
|
||||
[]
|
||||
);
|
||||
|
||||
return (
|
||||
@@ -623,7 +619,9 @@ function Loader() {
|
||||
|
||||
return (
|
||||
<div className={`loader ${!visible ? 'loader hidden' : ''}`}>
|
||||
<img src='/img/niko.jpg' className='niko-spin' />
|
||||
<picture>
|
||||
<img alt="niko!!" src='/img/niko.jpg' className='niko-spin' />
|
||||
</picture>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user