Skip to content

Commit

Permalink
TSL: More consistent names shadowPositionWorld, materialAO (#1453)
Browse files Browse the repository at this point in the history
* TSL: More consistent names shadowPositionWorld, materialAO

* Update three.js
  • Loading branch information
Methuselah96 authored Dec 20, 2024
1 parent 0917b50 commit b05c715
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions types/three/src/Three.TSL.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export const mat2: typeof TSL.mat2;
export const mat3: typeof TSL.mat3;
export const mat4: typeof TSL.mat4;
export const matcapUV: typeof TSL.matcapUV;
export const materialAOMap: typeof TSL.materialAOMap;
export const materialAO: typeof TSL.materialAO;
export const materialAlphaTest: typeof TSL.materialAlphaTest;
export const materialAnisotropy: typeof TSL.materialAnisotropy;
export const materialAnisotropyVector: typeof TSL.materialAnisotropyVector;
Expand Down Expand Up @@ -410,7 +410,7 @@ export const select: typeof TSL.select;
export const setCurrentStack: typeof TSL.setCurrentStack;
export const shaderStages: typeof TSL.shaderStages;
export const shadow: typeof TSL.shadow;
export const shadowWorldPosition: typeof TSL.shadowWorldPosition;
export const shadowPositionWorld: typeof TSL.shadowPositionWorld;
export const sharedUniformGroup: typeof TSL.sharedUniformGroup;
export const sheen: typeof TSL.sheen;
export const sheenRoughness: typeof TSL.sheenRoughness;
Expand Down
6 changes: 3 additions & 3 deletions types/three/src/nodes/accessors/MaterialNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type MaterialNodeScope =
| typeof MaterialNode.POINT_WIDTH
| typeof MaterialNode.DISPERSION
| typeof MaterialNode.LIGHT_MAP
| typeof MaterialNode.AO_MAP
| typeof MaterialNode.AO
| typeof MaterialNode.REFRACTION_RATIO;

export default class MaterialNode extends Node {
Expand Down Expand Up @@ -80,7 +80,7 @@ export default class MaterialNode extends Node {
static POINT_WIDTH: "pointWidth";
static DISPERSION: "dispersion";
static LIGHT_MAP: "light";
static AO_MAP: "ao";
static AO: "ao";
static REFRACTION_RATIO: "refractionRatio";

scope: MaterialNodeScope;
Expand Down Expand Up @@ -125,5 +125,5 @@ export const materialLineDashOffset: ShaderNodeObject<MaterialNode>;
export const materialPointWidth: ShaderNodeObject<MaterialNode>;
export const materialDispersion: ShaderNodeObject<MaterialNode>;
export const materialLightMap: ShaderNodeObject<MaterialNode>;
export const materialAOMap: ShaderNodeObject<MaterialNode>;
export const materialAO: ShaderNodeObject<MaterialNode>;
export const materialAnisotropyVector: ShaderNodeObject<UniformNode<Vector2>>;
2 changes: 1 addition & 1 deletion types/three/src/nodes/lighting/ShadowBaseNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ declare class ShadowBaseNode extends Node {
constructor(light: Light);
}

export const shadowWorldPosition: ShaderNodeObject<Node>;
export const shadowPositionWorld: ShaderNodeObject<Node>;

export default ShadowBaseNode;

0 comments on commit b05c715

Please sign in to comment.