MCPcopy Create free account
hub / github.com/Bloom-Engine/engine / setRenderScale

Function setRenderScale

src/core/index.ts:225–227  ·  view source on GitHub ↗
(scale: number)

Source from the content-addressed store, hash-verified

223 * Catmull-Rom is the default upscale filter (see `setUpscaleMode`).
224 */
225export function setRenderScale(scale: number): void {
226 bloom_set_render_scale(Math.min(1.0, Math.max(0.5, scale)));
227}
228export function getRenderScale(): number { return bloom_get_render_scale(); }
229
230/** Upscale filter when render_scale < 1 and TAA is off. "bilinear" = cheap/soft, "catmull-rom" = sharper (default). */

Callers 1

main.tsFile · 0.90

Calls 1

bloom_set_render_scaleFunction · 0.50

Tested by

no test coverage detected