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.

👋 I'm Jim, a full-stack product engineer. Want to build an amazing product and a profitable business?Read more about me or Get in touch!

More by Jim

Tagged #programming, #graphics, #webgl.Found an error? Edit this page.