Guest post: WebGL shading: both diffuse and specular

By Luís Fonseca

Hi, I’m Luís. Just doing a quick variation on Jims’ previous post about specular and diffuse lighting.

You don’t need to decide on going for one of those types. You can mix both to try to get a better effect.

As you move your cursor around the image above, press the s or d keys continuously for more specular or diffuse lighting, respectively.

Get updates on Twitter

Luís Fonseca wrote this. This post is presumably not associated with their employer. This site is hosted by Netlify (who are great, but I'm not associated with them either).