-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug/three examples dependencies (#20)
* included imported three examples into the bundle * sync three examples script * script bugfix * added libs build command to PR CI
- Loading branch information
Showing
23 changed files
with
831 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
etc | ||
src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
SOURCE_A="./node_modules/three/examples/jsm" | ||
SOURCE_B="./node_modules/@types/three/examples/jsm" | ||
TARGET="./src/three-examples" | ||
|
||
update_files() { | ||
local source_dir=$1 | ||
find "$TARGET" -type f | while IFS= read -r target_file; do | ||
relative_path="${target_file#$TARGET/}" | ||
source_file="$source_dir/$relative_path" | ||
if [[ -f "$source_file" ]]; then | ||
cp "$source_file" "$target_file" | ||
fi | ||
done | ||
} | ||
|
||
update_files "$SOURCE_A" | ||
update_files "$SOURCE_B" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
packages/three/src/three-examples/postprocessing/EffectComposer.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { Clock, WebGLRenderer, WebGLRenderTarget } from 'three'; | ||
|
||
import { FullScreenQuad, Pass } from './Pass.js'; | ||
import { ShaderPass } from './ShaderPass.js'; | ||
|
||
export { FullScreenQuad } from './Pass.js'; | ||
export { Pass }; | ||
|
||
export class EffectComposer { | ||
constructor(renderer: WebGLRenderer, renderTarget?: WebGLRenderTarget); | ||
renderer: WebGLRenderer; | ||
renderTarget1: WebGLRenderTarget; | ||
renderTarget2: WebGLRenderTarget; | ||
writeBuffer: WebGLRenderTarget; | ||
readBuffer: WebGLRenderTarget; | ||
passes: Pass[]; | ||
copyPass: ShaderPass; | ||
clock: Clock; | ||
renderToScreen: boolean; | ||
|
||
swapBuffers(): void; | ||
addPass(pass: Pass): void; | ||
insertPass(pass: Pass, index: number): void; | ||
removePass(pass: Pass): void; | ||
isLastEnabledPass(passIndex: number): boolean; | ||
render(deltaTime?: number): void; | ||
reset(renderTarget?: WebGLRenderTarget): void; | ||
setSize(width: number, height: number): void; | ||
setPixelRatio(pixelRatio: number): void; | ||
dispose(): void; | ||
} |
Oops, something went wrong.