@@ -64,29 +64,29 @@ export class PBRMetallicRoughness extends ThreeDOMElement implements
64
64
/**
65
65
* The base color factor of the material in RGBA format.
66
66
*/
67
- get baseColorFactor ( ) {
67
+ get baseColorFactor ( ) : Readonly < RGBA > {
68
68
return this [ $baseColorFactor ] ;
69
69
}
70
70
71
71
/**
72
72
* The metalness factor of the material in range [0,1].
73
73
*/
74
- get metallicFactor ( ) {
74
+ get metallicFactor ( ) : number {
75
75
return this [ $metallicFactor ] ;
76
76
}
77
77
78
78
/**
79
79
* The roughness factor of the material in range [0,1].
80
80
*/
81
- get roughnessFactor ( ) {
81
+ get roughnessFactor ( ) : number {
82
82
return this [ $roughnessFactor ] ;
83
83
}
84
84
85
- get baseColorTexture ( ) {
85
+ get baseColorTexture ( ) : TextureInfo | null {
86
86
return this [ $baseColorTexture ] ;
87
87
}
88
88
89
- get metallicRoughnessTexture ( ) {
89
+ get metallicRoughnessTexture ( ) : TextureInfo | null {
90
90
return this [ $metallicRoughnessTexture ] ;
91
91
}
92
92
@@ -95,7 +95,7 @@ export class PBRMetallicRoughness extends ThreeDOMElement implements
95
95
*
96
96
* @see ../api.ts
97
97
*/
98
- async setBaseColorFactor ( color : RGBA ) {
98
+ async setBaseColorFactor ( color : RGBA ) : Promise < void > {
99
99
await this [ $kernel ] . mutate ( this , 'baseColorFactor' , color ) ;
100
100
this [ $baseColorFactor ] = Object . freeze ( color ) as RGBA ;
101
101
}
@@ -105,7 +105,7 @@ export class PBRMetallicRoughness extends ThreeDOMElement implements
105
105
*
106
106
* @see ../api.ts
107
107
*/
108
- async setMetallicFactor ( factor : number ) {
108
+ async setMetallicFactor ( factor : number ) : Promise < void > {
109
109
await this [ $kernel ] . mutate ( this , 'metallicFactor' , factor ) ;
110
110
this [ $metallicFactor ] = factor ;
111
111
}
@@ -115,7 +115,7 @@ export class PBRMetallicRoughness extends ThreeDOMElement implements
115
115
*
116
116
* @see ../api.ts
117
117
*/
118
- async setRoughnessFactor ( factor : number ) {
118
+ async setRoughnessFactor ( factor : number ) : Promise < void > {
119
119
await this [ $kernel ] . mutate ( this , 'roughnessFactor' , factor ) ;
120
120
this [ $roughnessFactor ] = factor ;
121
121
}
0 commit comments