Skip to content

Commit

Permalink
MeshPhysicalMaterial: Add anisotropy property types. (#472)
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy authored and Methuselah96 committed Jun 29, 2023
1 parent 9613fa7 commit eb90e84
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions types/three/src/materials/MeshPhysicalMaterial.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ export interface MeshPhysicalMaterialParameters extends MeshStandardMaterialPara
iridescence?: number | undefined;
iridescenceThicknessRange?: [number, number] | undefined;
iridescenceThicknessMap?: Texture | null | undefined;

anisotropy?: number | undefined;
anisotropyRotation?: number | undefined;
anisotropyMap?: Texture | null | undefined;
}

export class MeshPhysicalMaterial extends MeshStandardMaterial {
Expand Down Expand Up @@ -193,4 +197,19 @@ export class MeshPhysicalMaterial extends MeshStandardMaterial {
* @default null
*/
iridescenceThicknessMap: Texture | null;

/**
* @default 0
*/
anisotropy?: number;

/**
* @default 0
*/
anisotropyRotation?: number;

/**
* @default null
*/
anisotropyMap?: Texture | null;
}

0 comments on commit eb90e84

Please sign in to comment.