Tech News
← Home  ·  All topics

Glsl

2 GoKawiil briefs on this topic · RSS for glsl

Simple divide-by-depth formula explains 3D-to-2D graphics projection

A blog post highlighted by developer tsoding breaks down 3D perspective projection into one basic operation: dividing a point's x and y coordinates by its z (depth) value. The piece demonstrates this with live shader examples, showing how a ball's position and size shrink toward a vanishing point as it moves farther from the camera along the z-axis.

Indie developer traces GPU shader stutter to a float rounding quirk in Voronoi noise code

A developer building a Voronoi-diagram shader for a music video noticed the animation stuttered on only one of their machines. A week-long investigation into shader compilation and disassembly revealed the bug stemmed from how the fractional part of a floating-point number was handled differently across hardware, causing visible artifacts.