Module APIs
Generated API reference for the standard BWSL modules.
Turn the guide into code
Take the key idea from this page into the playground and validate it in a real shader instead of leaving it as theory.
Open PlaygroundThese pages are generated from the module source files in the compiler repository. Import a module with import Name, then access exported members with Name::member.
Math
Constants, safe math helpers, remapping, easing, waves, and scalar/vector utility functions.
Random
Hash-based random number generation and GPU-friendly random distributions.
Noise
Hash, value, gradient, Worley, cellular, and fractal noise helpers.
Color
Color-space conversion and tone-mapping helpers.
Compression
Intrinsic-backed vertex decompression helpers for packed positions, normals, UVs, and colors.
PBR
Physically based rendering structs and BRDF helpers.
Globals
Shared engine-facing constants, enums, structs, and layout helpers.
PostFX
Post-processing helpers for gamma correction and tone mapping.