Skip to content

Commit

Permalink
TSL: Add function for BPCEM. (#1369)
Browse files Browse the repository at this point in the history
* TSL: Add function for BPCEM.

* Update three.js

* Add examples

* Update patch and delete examples

* Add examples

* Update patch and delete examples

* Add examples

* Update

* Update patch and delete examples

* Avoid
  • Loading branch information
Methuselah96 authored Nov 12, 2024
1 parent 89fb00c commit 99d19cc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions examples-testing/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const exceptionList = [
'webgpu_lines_fat_wireframe',
'webgpu_loader_materialx',
'webgpu_materials',
'webgpu_materials_envmaps_bpcem',
'webgpu_materials_matcap',
'webgpu_materials_sss',
'webgpu_materialx_noise',
Expand Down
1 change: 1 addition & 0 deletions types/three/src/nodes/TSL.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,6 @@ export { default as V_GGX_SmithCorrelated } from "./functions/BSDF/V_GGX_SmithCo
export * from "./lighting/LightUtils.js";

export { default as getGeometryRoughness } from "./functions/material/getGeometryRoughness.js";
export { default as getParallaxCorrectNormal } from "./functions/material/getParallaxCorrectNormal.js";
export { default as getRoughness } from "./functions/material/getRoughness.js";
export { default as getShIrradianceAt } from "./functions/material/getShIrradianceAt.js";
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import Node from "../../core/Node.js";
import { NodeRepresentation, ShaderNodeObject } from "../../tsl/TSLCore.js";

declare const getParallaxCorrectNormal: (
normal: NodeRepresentation,
cubeSize: NodeRepresentation,
cubePos: NodeRepresentation,
) => ShaderNodeObject<Node>;

export default getParallaxCorrectNormal;

0 comments on commit 99d19cc

Please sign in to comment.