xem / W

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

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

Closed stasm closed 2 years ago

stasm commented 2 years ago

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