kota's memex

language

types

qualifiers

math

The GPU has hardware accelerated angle, trigonometric and exponential functions. Some of those functions are: sin(), cos(), tan(), asin(), acos(), atan(), pow(), exp(), log(), sqrt(), abs(), sign(), floor(), ceil(), fract(), mod(), min(), max() and clamp().

macros

#define PI 3.14159265359

learn

https://thebookofshaders.com/

A very popular book on shaders with great examples.

https://nostarch.com/computer-graphics-scratch

A nice introductory book on computer graphics programming in general.