Skip to content

Commit

Permalink
Merge pull request #43 from MasatoMakino/type-module
Browse files Browse the repository at this point in the history
change : type module
  • Loading branch information
MasatoMakino authored Jan 28, 2024
2 parents e9852ac + f23181f commit 7734a63
Show file tree
Hide file tree
Showing 151 changed files with 137 additions and 1,659 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ typings/
.next
.idea
*.tsbuildinfo
docs
docs
.lib
2 changes: 1 addition & 1 deletion demoSrc/Common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
Scene,
WebGLRenderer,
} from "three";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls";
import { OrbitControls } from "three/examples/jsm/controls/OrbitControls.js";

export class Common {
static initScene() {
Expand Down
12 changes: 8 additions & 4 deletions demoSrc/demoAA.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,15 @@ import {
SphereGeometry,
Vector2,
} from "three";
import { Common } from "./Common";
import { BloomEffectComposer, FXAAShaderPass, PostProcessRenderer } from "..";
import { Common } from "./Common.js";
import {
BloomEffectComposer,
FXAAShaderPass,
PostProcessRenderer,
} from "../esm/index.js";
import GUI from "lil-gui";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass";
import { CommonGUI } from "./CommonGUI";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
import { CommonGUI } from "./CommonGUI.js";
import { RAFTicker } from "@masatomakino/raf-ticker";

export class StudyBloom {
Expand Down
12 changes: 8 additions & 4 deletions demoSrc/demoBloom.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,15 @@ import {
PointLightHelper,
SphereGeometry,
} from "three";
import { Common } from "./Common";
import { BloomEffectComposer, MixShaderPass, PostProcessRenderer } from "..";
import { Common } from "./Common.js";
import {
BloomEffectComposer,
MixShaderPass,
PostProcessRenderer,
} from "../esm/index.js";
import GUI from "lil-gui";
import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass";
import { RenderPass } from "three/examples/jsm/postprocessing/RenderPass.js";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
import { RAFTicker } from "@masatomakino/raf-ticker";

export class StudyBloom {
Expand Down
8 changes: 5 additions & 3 deletions demoSrc/demoChromaticAberration.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import {
Color,
Fog,
Mesh,
MeshLambertMaterial,
PointLight,
PointLightHelper,
SphereGeometry,
} from "three";
import { Common } from "./Common";
import { Common } from "./Common.js";
import GUI from "lil-gui";
import { ChromaticAberrationShaderPass, PostProcessRenderer } from "..";
import {
ChromaticAberrationShaderPass,
PostProcessRenderer,
} from "../esm/index.js";
import { RAFTicker } from "@masatomakino/raf-ticker";

export class Study {
Expand Down
8 changes: 4 additions & 4 deletions demoSrc/demoColorFilter.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Color, Mesh, MeshLambertMaterial, SphereGeometry } from "three";
import { Common } from "./Common";
import { Common } from "./Common.js";
import GUI from "lil-gui";
import { ColorFilterShaderPass, PostProcessRenderer } from "..";
import { CommonGUI } from "./CommonGUI";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass";
import { ColorFilterShaderPass, PostProcessRenderer } from "../esm/index.js";
import { CommonGUI } from "./CommonGUI.js";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
import { RAFTicker } from "@masatomakino/raf-ticker";

class Study {
Expand Down
11 changes: 7 additions & 4 deletions demoSrc/demoDisplacement.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import { Color, Fog, Mesh, MeshLambertMaterial, SphereGeometry } from "three";
import { Common } from "./Common";
import { Common } from "./Common.js";
import GUI from "lil-gui";
import { DisplacementMapShaderPass, PostProcessRenderer } from "..";
import { CommonGUI } from "./CommonGUI";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass";
import {
DisplacementMapShaderPass,
PostProcessRenderer,
} from "../esm/index.js";
import { CommonGUI } from "./CommonGUI.js";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
import { RAFTicker, RAFTickerEventType } from "@masatomakino/raf-ticker";

class Study {
Expand Down
8 changes: 4 additions & 4 deletions demoSrc/demoMonotone.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Color, Mesh, MeshLambertMaterial, SphereGeometry } from "three";
import { Common } from "./Common";
import { Common } from "./Common.js";
import GUI from "lil-gui";
import { MonotoneShaderPass, PostProcessRenderer } from "..";
import { CommonGUI } from "./CommonGUI";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass";
import { MonotoneShaderPass, PostProcessRenderer } from "../esm/index.js";
import { CommonGUI } from "./CommonGUI.js";
import { SMAAPass } from "three/examples/jsm/postprocessing/SMAAPass.js";
import { RAFTicker, RAFTickerEventType } from "@masatomakino/raf-ticker";

class Study {
Expand Down
9 changes: 6 additions & 3 deletions demoSrc/demoPeripheralLight.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Color, Fog, Mesh, MeshLambertMaterial, SphereGeometry } from "three";
import { Common } from "./Common";
import { Common } from "./Common.js";
import GUI from "lil-gui";
import { PeripheralLightShaderPass, PostProcessRenderer } from "..";
import { RAFTicker, RAFTickerEventType } from "@masatomakino/raf-ticker";
import {
PeripheralLightShaderPass,
PostProcessRenderer,
} from "../esm/index.js";
import { RAFTicker } from "@masatomakino/raf-ticker";

class Study {
constructor() {
Expand Down
21 changes: 0 additions & 21 deletions lib/bloom/BloomEffectComposer.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/bloom/BloomEffectComposer.d.ts.map

This file was deleted.

37 changes: 0 additions & 37 deletions lib/bloom/BloomEffectComposer.js

This file was deleted.

25 changes: 0 additions & 25 deletions lib/bloom/MaterialStorage.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/bloom/MaterialStorage.d.ts.map

This file was deleted.

89 changes: 0 additions & 89 deletions lib/bloom/MaterialStorage.js

This file was deleted.

29 changes: 0 additions & 29 deletions lib/bloom/MaterialSwitcher.d.ts

This file was deleted.

1 change: 0 additions & 1 deletion lib/bloom/MaterialSwitcher.d.ts.map

This file was deleted.

Loading

0 comments on commit 7734a63

Please sign in to comment.