UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

12 lines (10 loc) 427 B
const WGSL_DITHER = ` fn dither(seed: vec2<f32>, varianceAmount: f32) -> f32 { let rand = fract(sin(dot(seed, vec2<f32>(12.9898, 78.233))) * 43758.5453); let normVariance = varianceAmount / 255.0; return mix(-normVariance, normVariance, rand); } `; const WGSL_NO_DITHER = "fn dither(a:vec2<f32>,b:f32)->f32{return 0.0;}"; export { WGSL_DITHER as W, WGSL_NO_DITHER as a }; //# sourceMappingURL=wgsl-helpers-D-Db86WE.esm.js.map