RenderPass<U, Context>
ts
type RenderPass<U, Context> = Omit<
RawRenderPass<UniformValues>,
"uniforms" | "render" | "setUniformValues" | "onUpdated"
> & {
uniforms: U;
render: (options?: RenderOptions<Context>) => void;
onUpdated: (callback: UpdatedCallback<U>) => void;
};A rendering pass with managed uniform sources.
Type Declaration
| Name | Type | Description |
|---|---|---|
uniforms | U | The original reactive uniform-source object. |
render() | (options?: RenderOptions<Context>) => void | Renders after resolving uniform sources with the supplied context. |
onUpdated() | (callback: UpdatedCallback<U>) => void | Registers a callback whenever a uniform source changes. |
Type Parameters
U
U extends UniformSources<any> = UniformSources<any>
Context
Context extends UniformContext = UniformContext