@openhps/core
Version:
Open Hybrid Positioning System - Core component
34 lines (21 loc) • 787 B
TypeScript
import { Usage } from "../constants.js";
import { EventDispatcher } from "./EventDispatcher.js";
import { Uniform } from "./Uniform.js";
/**
* @see Example: {@link https://threejs.org/examples/#webgl2_ubo | WebGL2 / UBO}
* @see {@link https://github.com/mrdoob/three.js/blob/master/src/core/UniformsGroup.js | Source}
*/
export class UniformsGroup extends EventDispatcher<{ dispose: {} }> {
constructor();
readonly isUniformsGroup: true;
id: number;
usage: Usage;
uniforms: Array<Uniform | Uniform[]>;
add(uniform: Uniform | Uniform[]): this;
remove(uniform: Uniform | Uniform[]): this;
setName(name: string): this;
setUsage(value: Usage): this;
dispose(): this;
copy(source: UniformsGroup): this;
clone(): UniformsGroup;
}