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.

Luís Fonseca wrote this. This post is presumably not associated with their employer.