Spaces:
Running
Running
File size: 325 Bytes
2b7aae2 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | class Uniform {
constructor(value) {
if (typeof value === 'string') {
console.warn('THREE.Uniform: Type parameter is no longer needed.');
value = arguments[1];
}
this.value = value;
}
clone() {
return new Uniform(this.value.clone === undefined ? this.value : this.value.clone());
}
}
export { Uniform };
|