From the course: SVG: Clipping, Masking, and Filters

Unlock the full course today

Join today to access over 22,700 courses taught by industry experts or purchase this course individually.

feDiffuseLighting

feDiffuseLighting

From the course: SVG: Clipping, Masking, and Filters

Start my 1-month free trial

feDiffuseLighting

- [Instructor] There are two lighting SVG filter primitives, feDiffuseLighting and feSpecularlLighting. We'll cover them over the next two movies. Both of these appear to be very similar, and the code part of them works much the same way. So right up front I just want to explain what makes them different. It all boils down to the words diffuse and specular, which refer to how the light is reflected off the material. In simple terms, diffuse lighting gives you the type of reflection you'd see if you shine a light on a piece of paper. It's literally diffuse because of the rough surface. Specular lighting gives you the type of reflection you'd see from shining a light on a reflective surface like polished metal or a mirror. It's brighter and sharper and more direct. With this in mind let's tackle feDiffuseLighting first. The feDiffuseLighting filter primitive you see here is a wrapper for the feDistantLight, fePointLight, and feSpotLight primitive children which describe the actual light…

Contents