- Home /
Disable specular highlights for point lights without shadows
Hello everyone,
We are developing a WebGL 2.0 application, so deferred rendering is used. The scene is created from scratch during execution so we can't use baked lightmaps. We add spotlights for direct illumination with shadows and point lights for indirect illumination (fill lights) without shadows.
The problem is that we need to disable the specular highlight only from point lights. We can't use the render mode: "Not Important" on point lights because of the deferred rendering.
We can use the _SPECULARHIGHLIGHTS_OFF keyword in our custom shader, but we just want to deactivate highlights for certain lights (point lights without shadows).
Any idea on how to get this?
Thanks!
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613054905im_/https://answers.unity.com/themes/thub/images/avi.jpg)