Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
piellardj committed Sep 30, 2024
1 parent 7cd0f57 commit 724d05d
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/lib/effects/weather/rain.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as THREE from '../../libs/three-usage';

import { GpuInstancedBillboard } from './weather-particles-base';

class Rain {
Expand Down Expand Up @@ -73,4 +74,3 @@ return vec4(0.5, 0.5, 1, 1);
}

export { Rain };

2 changes: 1 addition & 1 deletion src/lib/effects/weather/snow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as THREE from '../../libs/three-usage';

import { GpuInstancedBillboard } from './weather-particles-base';

class Snow {
Expand Down Expand Up @@ -76,4 +77,3 @@ return vec4(0.9, 0.9, 1, 1);
}

export { Snow };

1 change: 0 additions & 1 deletion src/lib/effects/weather/weather-particles-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,4 +207,3 @@ localTransform = mat2(size.x, 0, 0, size.y);`,
}

export { GpuInstancedBillboard };

11 changes: 5 additions & 6 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,27 +12,26 @@ export {
type ILocalMapData,
type IVoxelMap,
type IVoxelMaterial,
type VoxelsChunkSize
type VoxelsChunkSize,
} from './terrain/voxelmap/i-voxelmap';
export {
VoxelmapViewerAutonomous,
type VoxelmapViewerAutonomousOptions
type VoxelmapViewerAutonomousOptions,
} from './terrain/voxelmap/viewer/autonomous/voxelmap-viewer-autonomous';
export {
EComputationMethod,
VoxelmapViewer,
type ComputationOptions,
type ComputationStatus,
type VoxelmapViewerOptions,
type VoxelsChunkData
type VoxelsChunkData,
} from './terrain/voxelmap/viewer/simple/voxelmap-viewer';
export { VoxelmapVisibilityComputer } from './terrain/voxelmap/voxelmap-visibility-computer';
export { type CheckerboardType } from './terrain/voxelmap/voxelsRenderable/voxelsRenderableFactory/voxels-renderable-factory-base';

export { InstancedBillboard } from './effects/billboard/instanced-billboard';
export { BuffAscendEffect } from './effects/particles/buff-ascend-effect';
export { type Spritesheet } from './effects/spritesheet';
export { Rain } from "./effects/weather/rain";
export { Snow } from "./effects/weather/snow";
export { Rain } from './effects/weather/rain';
export { Snow } from './effects/weather/snow';
export { GpuInstancedBillboard } from './effects/weather/weather-particles-base';

15 changes: 8 additions & 7 deletions src/test/test-weather.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { GUI } from "lil-gui";
import { GUI } from 'lil-gui';
import * as THREE from 'three-usage-test';

import { Rain, Snow } from '../lib';

import { TestBase } from "./test-base";
import { TestBase } from './test-base';

enum EType {
RAIN = "rain",
SNOW = "snow",
RAIN = 'rain',
SNOW = 'snow',
}

class TestWeather extends TestBase {
Expand Down Expand Up @@ -38,11 +38,13 @@ class TestWeather extends TestBase {
this.scene.add(this.rain.container);

this.gui = new GUI();
this.gui.add(this.parameters, "type", Object.values(EType)).onChange(() => {
this.gui.add(this.parameters, 'type', Object.values(EType)).onChange(() => {
this.enforceType();
this.enforceCount();
});
this.gui.add(this.parameters, "count", 0, 65000, 1000).onChange(() => { this.enforceCount(); });
this.gui.add(this.parameters, 'count', 0, 65000, 1000).onChange(() => {
this.enforceCount();
});
this.enforceCount();
this.enforceType();
}
Expand All @@ -69,4 +71,3 @@ class TestWeather extends TestBase {
}

export { TestWeather };

0 comments on commit 724d05d

Please sign in to comment.