Skip to content

Commit

Permalink
NodeMaterial: Honor aoMapIntensity. (#1099)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Jul 21, 2024
1 parent 8e973d6 commit 5fd3285
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions types/three/src/nodes/Nodes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export {
materialAlphaTest,
materialAnisotropy,
materialAnisotropyVector,
materialAOMap,
materialClearcoat,
materialClearcoatNormal,
materialClearcoatRoughness,
Expand Down
5 changes: 4 additions & 1 deletion types/three/src/nodes/accessors/MaterialNode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ export type MaterialNodeScope =
| typeof MaterialNode.LINE_DASH_OFFSET
| typeof MaterialNode.POINT_WIDTH
| typeof MaterialNode.DISPERSION
| typeof MaterialNode.LIGHT_MAP;
| typeof MaterialNode.LIGHT_MAP
| typeof MaterialNode.AO_MAP;

export default class MaterialNode extends Node {
static ALPHA_TEST: "alphaTest";
Expand Down Expand Up @@ -78,6 +79,7 @@ export default class MaterialNode extends Node {
static POINT_WIDTH: "pointWidth";
static DISPERSION: "dispersion";
static LIGHT_MAP: "light";
static AO_MAP: "ao";

scope: MaterialNodeScope;
constructor(scope?: MaterialNodeScope);
Expand Down Expand Up @@ -121,4 +123,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 materialAnisotropyVector: ShaderNodeObject<UniformNode<Vector2>>;

0 comments on commit 5fd3285

Please sign in to comment.