logo
Shader Story
Common Functions
Initializing search
    DeGGeD/ShaderStory
    DeGGeD/ShaderStory
    • Home
    • Foundations
      • Mesh Data
      • The Render Pipeline
      • Forward vs Deferred
      • Normal Maps
      • Shadow Mapping
    • Textures
      • Introduction
        • Basic UVs
        • Color Data & Sampling
        • Cubemaps
        • Filtering & Mipmaps
        • Manual Filtering
        • Normal Map Sampling
        • Sampling & Tinting
        • Shadow Map Sampling
        • Texture Arrays
        • Tiling & Offset
        • Rotating UVs
        • Virtual & Sparse Textures
        • Billboarding
        • Bulge UVs
        • Interior Mapping
        • Object-Scaled UVs
        • Parallax Mapping
        • Polar UVs
        • Screen-Space UVs
        • Sprite-Space UVs
        • Tri-Planar UVs
        • Dissolve
        • UVs & Time
        • Blending over Time
        • Time Overflow
    • Common Functions
      • Abs
      • Clamp & Saturate
      • Cross
      • Distance
      • Dot
      • Exp
      • Floor & Ceil
      • Fmod
      • Frac
      • Length
      • Lerp
      • Min/Max
      • Negate
      • Normalize
      • Power
      • Remap
      • Sine & Cosine
      • Smoothstep
      • Sqrt
      • Step
    • Derivatives
      • Edge Transition
      • Harden Normals
      • Silhouette
      • Slope Detect
    • Patterns & Shapes
      • Checkerboard
      • Circle
      • Grid
      • Hex Grid
      • Line
      • Ripplewaves
      • Square
      • Stripes
      • Whirl
        • Perlin Noise
        • Simplex Noise
        • Turbulence Noise
        • Value Noise
        • Voronoi Noise
        • Worley Noise
    • Lighting Models
      • Ambient Lighting & Hemi Lights
      • Banded
      • Blinn-Phong
      • Fresnel
      • Half-Lambertian
      • Halftone
      • Image-Based Lighting (IBL)
      • Lambertian
      • Lookup Tables (LUT)
      • Matcap
      • Minnaert
      • Toon
    • Vertex Animation
      • Coordinate Spaces
      • Data Sources
      • Gameplay-Driven Motion
      • Introduction
      • Matrices
        • Authored Masks
        • Procedural Masks
        • Runtime Masks
        • Controlled Irregularity
        • Gerstner Waves
        • Normals Reconstruction
        • Sine Wave Offset
        • Multiple Objects Pivot Bake
        • Single Object Mesh Pivot
        • Single Object Pivot Data
        • Bounds
        • Instancing
        • LODs
        • Motion Vectors & TAA
        • Normals (Shipping)
        • Pass Consistency
        • Easing Functions
        • Phase Offset
        • Time Wrapping

    Common Functions

    Core HLSL math and vector functions, each with a live visual demo.

    • Abs
    • Clamp & Saturate
    • Cross
    • Distance
    • Dot
    • Exp
    • Floor & Ceil
    • Fmod
    • Frac
    • Length
    • Lerp
    • Min/Max
    • Negate
    • Normalize
    • Power
    • Remap
    • Sine & Cosine
    • Smoothstep
    • Sqrt
    • Step
    Shader Story
    © Shader Story - Decompiled Art · Content licensed CC BY-NC 4.0
    Made with Material for MkDocs