import { Combine } from "../constants.js"; import { Color, ColorRepresentation } from "../math/Color.js"; import { Euler } from "../math/Euler.js"; import { Texture } from "../textures/Texture.js"; import { Material, MaterialParameters } from "./Material.js"; /** * parameters is an object with one or more properties defining the material's appearance. */ export interface MeshBasicMaterialParameters extends MaterialParameters { color?: ColorRepresentation | undefined; opacity?: number | undefined; map?: Texture | null | undefined; lightMap?: Texture | null; lightMapIntensity?: number | undefined; aoMap?: Texture | null | undefined; aoMapIntensity?: number | undefined; specularMap?: Texture | null | undefined; alphaMap?: Texture | null | undefined; fog?: boolean | undefined; envMap?: Texture | null | undefined; envMapRotation?: Euler | undefined; combine?: Combine | undefined; reflectivity?: number | undefined; refractionRatio?: number | undefined; wireframe?: boolean | undefined; wireframeLinewidth?: number | undefined; wireframeLinecap?: string | undefined; wireframeLinejoin?: string | undefined; } export class MeshBasicMaterial extends Material { constructor(parameters?: MeshBasicMaterialParameters); /** * Read-only flag to check if a given object is of type {@link MeshBasicMaterial}. * @remarks This is a _constant_ value * @defaultValue `true` */ readonly isMeshBasicMaterial: true; /** * @default new THREE.Color( 0xffffff ) */ color: Color; /** * @default null */ map: Texture | null; /** * @default null */ lightMap: Texture | null; /** * @default 1 */ lightMapIntensity: number; /** * @default null */ aoMap: Texture | null; /** * @default 1 */ aoMapIntensity: number; /** * @default null */ specularMap: Texture | null; /** * @default null */ alphaMap: Texture | null; /** * @default null */ envMap: Texture | null; /** * The rotation of the environment map in radians. Default is `(0,0,0)`. */ envMapRotation: Euler; /** * @default THREE.MultiplyOperation */ combine: Combine; /** * @default 1 */ reflectivity: number; /** * @default 0.98 */ refractionRatio: number; /** * @default false */ wireframe: boolean; /** * @default 1 */ wireframeLinewidth: number; /** * @default 'round' */ wireframeLinecap: string; /** * @default 'round' */ wireframeLinejoin: string; /** * Whether the material is affected by fog. Default is true. * @default fog */ fog: boolean; setValues(parameters: MeshBasicMaterialParameters): void; }