xem / W

A micro WebGL2 framework with a ton of features
https://xem.github.io/W
331 stars 23 forks source link

Compute normals in the fragment shader with dFdx, dFdy derivative functions #3

Closed stasm closed 3 years ago

stasm commented 3 years ago

Here's a good article about the GLSL derivative functions: http://www.aclockworkberry.com/shader-derivative-functions/