Opal::Shader::FastMath
High-performance mathematical helpers and trigonometric lookup tables (LUT) for real-time text fragment shaders.
Constants
HALF_PI = Math::PI / 2.0
INV_TWO_PI = 1.0 / TWO_PI
Precomputed sine lookup table
TABLE_MASK = 1023
TABLE_SCALE = 1024.0
TABLE_SIZE = 1024
TWO_PI = Math::PI * 2.0