radarmp/mp_elements/shaders/constants.wgsl
2024-11-15 17:10:18 +08:00

6 lines
285 B
WebGPU Shading Language

const PI:f32 = 3.14159265358979323846264338327950288;
const TWO_PI:f32 = 6.28318530717958647692528676655900576;
const HALF_PI:f32 = 1.57079632679489661923132169163975144;
const LOG2:f32 = 0.693147180559945309417232121458176568;
const LOG10:f32 = 2.30258509299404568401799145468436421;