-
-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WebGPURenderer: support using 3d textures (#976)
* WebGPURenderer: support using 3d textures * Update three.js * Add examples * Update * Fix
- Loading branch information
1 parent
db87d87
commit 04ef205
Showing
8 changed files
with
33 additions
and
3 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
Submodule three.js
updated
32 files
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
16 changes: 16 additions & 0 deletions
16
types/three/examples/jsm/nodes/accessors/Texture3DNode.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,16 @@ | ||
import { CubeTexture, Texture } from "three"; | ||
import Node from "../core/Node.js"; | ||
import { NodeRepresentation, ShaderNodeObject } from "../shadernode/ShaderNode.js"; | ||
import TextureNode from "./TextureNode.js"; | ||
|
||
export default class Texture3DNode extends TextureNode { | ||
readonly isTexture3DNode: true; | ||
|
||
constructor(value: Texture, uvNode?: ShaderNodeObject<Node> | null, levelNode?: ShaderNodeObject<Node> | null); | ||
} | ||
|
||
export const texture3D: ( | ||
value: CubeTexture, | ||
uvNode?: NodeRepresentation, | ||
levelNode?: NodeRepresentation, | ||
) => ShaderNodeObject<Texture3DNode>; |
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
10 changes: 10 additions & 0 deletions
10
types/three/examples/jsm/nodes/materials/VolumeNodeMaterial.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,10 @@ | ||
import Node from "../core/Node.js"; | ||
import NodeMaterial, { NodeMaterialParameters } from "./NodeMaterial.js"; | ||
|
||
export default class VolumeNodeMaterial extends NodeMaterial { | ||
lights: boolean; | ||
readonly isVolumeNodeMaterial: true; | ||
testNode: Node | null; | ||
|
||
constructor(parameters?: NodeMaterialParameters); | ||
} |