Derivative Shaders ((top)) Now

Here’s an interesting, conceptual write-up on — a niche but powerful technique in real-time graphics.

Derivatives provide a proxy for screen-space size. If length(ddx(position)) is small, the object is large on screen (high detail needed). If the value is large, the object is small on screen (low detail needed). This allows for dynamic LOD in fragment shaders without passing distance variables from the vertex stage. derivative shaders

// Fragment shader snippet float rustAmount = 0.0; Here’s an interesting, conceptual write-up on — a