-
-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sky: Add WebGPURenderer version. (#1161)
* Sky: Add WebGPURenderer version. * Update three.js * Add examples * Update patch and delete examples * Fix * upUniform * Update
- Loading branch information
1 parent
562806b
commit 0e30713
Showing
3 changed files
with
38 additions
and
1 deletion.
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
Submodule three.js
updated
6 files
+76 −16 | build/three.webgpu.js | |
+1 −1 | build/three.webgpu.min.js | |
+1 −0 | examples/files.json | |
+190 −0 | examples/jsm/objects/SkyGPU.js | |
+ − | examples/screenshots/webgpu_sky.jpg | |
+136 −0 | examples/webgpu_sky.html |
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,17 @@ | ||
import { Node, ShaderNodeObject, UniformNode } from "three/tsl"; | ||
import { BoxGeometry, Mesh, NodeMaterial, Vector3 } from "three/webgpu"; | ||
|
||
declare class Sky extends Mesh<BoxGeometry, NodeMaterial> { | ||
turbidity: ShaderNodeObject<UniformNode<number>>; | ||
rayleigh: ShaderNodeObject<UniformNode<number>>; | ||
mieCoefficient: ShaderNodeObject<UniformNode<number>>; | ||
mieDirectionalG: ShaderNodeObject<UniformNode<number>>; | ||
sunPosition: ShaderNodeObject<UniformNode<Vector3>>; | ||
upUniform: ShaderNodeObject<UniformNode<Vector3>>; | ||
|
||
readonly isSky: true; | ||
|
||
constructor(); | ||
} | ||
|
||
export { Sky }; |