blob: 3abff57be7ac6f15a4a214c07215ca92fce50dc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import {Type} from 'class-transformer';
import {Colour} from './Colour';
export class Material {
@Type(() => Colour)
readonly diffuseColour: Colour;
constructor(
diffuseColour: Colour,
readonly diffuseAlbedo: number,
readonly specularAlbedo: number,
readonly reflectionAlbedo: number,
readonly specularExponent: number
) {
this.diffuseColour = diffuseColour;
}
}
|