module
CrShader::Language::Std::Math
Overview
Standard Math & Geometry (require "std/math"):
Provides essential mathematical functions and utility curves:
saturate(x): Clamps input to[0.0, 1.0].lerp(a, b, t): Linear interpolation alias.remap(val, in_min, in_max, out_min, out_max): Linear range remapping.rotate_2d(p, angle): Fast 2D vector rotation around origin.fresnel(power, normal, view): Power-law optical Fresnel reflection factor.rand(uv): 2D UV hashing pseudo-random generator.