Spaces:
Running
Running
File size: 2,029 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 | import { Color } from './../math/Color';
import { Texture } from './../textures/Texture';
import { Vector2 } from './../math/Vector2';
import { MaterialParameters, Material } from './Material';
import { NormalMapTypes } from '../constants';
import { ColorRepresentation } from '../utils';
export interface MeshMatcapMaterialParameters extends MaterialParameters {
color?: ColorRepresentation | undefined;
matcap?: Texture | null | undefined;
map?: Texture | null | undefined;
bumpMap?: Texture | null | undefined;
bumpScale?: number | undefined;
normalMap?: Texture | null | undefined;
normalMapType?: NormalMapTypes | undefined;
normalScale?: Vector2 | undefined;
displacementMap?: Texture | null | undefined;
displacementScale?: number | undefined;
displacementBias?: number | undefined;
alphaMap?: Texture | null | undefined;
flatShading?: boolean | undefined;
}
export class MeshMatcapMaterial extends Material {
constructor(parameters?: MeshMatcapMaterialParameters);
/**
* @default 'MeshMatcapMaterial'
*/
type: string;
/**
* @default { 'MATCAP': '' }
*/
defines: { [key: string]: any };
/**
* @default new THREE.Color( 0xffffff )
*/
color: Color;
/**
* @default null
*/
matcap: Texture | null;
/**
* @default null
*/
map: Texture | null;
/**
* @default null
*/
bumpMap: Texture | null;
/**
* @default 1
*/
bumpScale: number;
/**
* @default null
*/
normalMap: Texture | null;
/**
* @default THREE.TangentSpaceNormalMap
*/
normalMapType: NormalMapTypes;
/**
* @default new Vector2( 1, 1 )
*/
normalScale: Vector2;
/**
* @default null
*/
displacementMap: Texture | null;
/**
* @default 1
*/
displacementScale: number;
/**
* @default 0
*/
displacementBias: number;
/**
* @default null
*/
alphaMap: Texture | null;
/**
* Define whether the material is rendered with flat shading. Default is false.
* @default false
*/
flatShading: boolean;
setValues(parameters: MeshMatcapMaterialParameters): void;
}
|