Skip to content

@modoki/engine / index / NPRPostFX

Variable: NPRPostFX

const NPRPostFX: Trait<{ colorThreshold: number; depthThreshold: number; enabled: boolean; fillMode: string; fxaa: boolean; fxaaBlendStrength: number; fxaaEdgeThreshold: number; fxaaEdgeThresholdMin: number; grayscaleGamma: number; grayscaleLift: number; lineStrength: number; lineThickness: number; normalThreshold: number; superSampleScale: number; }>

NPRPostFX — non-photoreal post-processing config (singleton per scene). When enabled, Scene3D routes rendering through a TSL edge-detection composer. Two fill modes: 'flat' (white sheet) and 'grayscale' (lit luminance, remapped toward highlights). All thresholds are uniform inputs — changes update in place without rebuilding the node graph.

Built with Modoki.