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.

Tagged #programming, #graphics, #webgl.

Similar posts

More by Jim

Want to build a fantastic product using LLMs? I work at Granola where we're building the future IDE for knowledge work. Come and work with us! Read more or get in touch!

Found an error? Edit this page.