-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
diffuseLighting filter #18
Comments
@rdfriedl can you take a look at this please? |
OK, figured it out!
As "lighting-color" appears to be the only other possible parameter for DiffuseLighting, maybe add it to the constructor? |
@mcrossley nice catch, I dont know how I missed that property. @Fuzzyma how should we add this argument / attribute? (doc) filter.diffuseLighting(surfaceScale, diffuseConstant, kernelUnitLength);
filter.specularLighting(surfaceScale, diffuseConstant, specularExponent, kernelUnitLength); since they are somewhat important arguments for the lighting effects do you think its worth adding then to the beginning on the arguments? // doing this would break the backwards compatibility of svg.filter.js
// but it would make setting the lighting-color easier
filter.diffuseLighting(surfaceScale, lightingColor, diffuseConstant, kernelUnitLength);
filter.specularLighting(surfaceScale, lightingColor, diffuseConstant, specularExponent, kernelUnitLength); or should we just append then onto the end of the arguments? // this would keep the backwards compatibility of svg.filter.js
// but it might make it incontinent to set the color, or it might confuse some people
filter.diffuseLighting(surfaceScale, diffuseConstant, kernelUnitLength, lightingColor);
filter.specularLighting(surfaceScale, diffuseConstant, specularExponent, kernelUnitLength, lightingColor); |
I would say append them for now. When 3.0 is out we have to rewrite the plugins anyway. This change could be made there then |
I followed the example above but was using a point light source as a child of a specular lighting filter. This was throwing an error ..
I was able resolve this using the following syntax This was then correctly applying the point light as a child of the specular light. More of an FYI as this took me some time to find the correct information. |
I'm stuck on the diffuseLighting filter.
This is what I am trying to achieve...
The plugin seems to be missing the parameter for "lighting-color" (mentioned in passing in the very last sentence at the end of the relevant section in W3 document!), and I'm not sure how to apply the fePointLight child element.
Any pointers gratefully received!
Thanks
Mark
The text was updated successfully, but these errors were encountered: