Skip to content

Commit

Permalink
WebGPURenderer: Fixed shadows not rendering correctly with logarithmi…
Browse files Browse the repository at this point in the history
…cDepthBuffer (#1300)
  • Loading branch information
Methuselah96 authored Oct 23, 2024
1 parent 5b3a14b commit 3f2e585
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion types/three/src/nodes/accessors/Camera.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { ShaderNodeObject } from "../tsl/TSLCore.js";

export const cameraNear: ShaderNodeObject<UniformNode<number>>;
export const cameraFar: ShaderNodeObject<UniformNode<number>>;
export const cameraLogDepth: ShaderNodeObject<UniformNode<number>>;
export const cameraProjectionMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
export const cameraProjectionMatrixInverse: ShaderNodeObject<UniformNode<Matrix4>>;
export const cameraViewMatrix: ShaderNodeObject<UniformNode<Matrix4>>;
Expand Down
2 changes: 2 additions & 0 deletions types/three/src/nodes/display/ViewportDepthNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export const viewZToPerspectiveDepth: (viewZ: Node, near: Node, far: Node) => No

export const perspectiveDepthToViewZ: (depth: Node, near: Node, far: Node) => Node;

export const perspectiveDepthToLogarithmicDepth: (perspectiveW: Node, near: Node, far: Node) => Node;

export const depth: ShaderNodeObject<ViewportDepthNode>;
export const linearDepth: (valueNode?: Node | null) => ShaderNodeObject<ViewportDepthNode>;
export const viewportLinearDepth: ShaderNodeObject<ViewportDepthNode>;

0 comments on commit 3f2e585

Please sign in to comment.