- Home /
What exactly is a pixel light in Unity ?
I know that pixel lights are rendered per fragment and all that, but I do not understand what it means.
I mean whether a programmer wants to do lighting calculations in the pixel shader or the vertex shader is entirely upto her / him right ?
What does it mean to "render" a light in the first place ? The GPU renders a 3d model based on the vertex and fragment programs loaded in its vertex and fragment processors.
Help is most appreciated.
Thanks a lot
It's my understanding that the "pixel light" value you're talking about refers to how many lights are considered by fragment/surface shaders for a given pixel. I think the N lights are chosen based on their intensity at the given sample, but I'm fuzzy on these topics.
I don't know all the details about how this relates to vertex-based lighting, but obviously that's a separate procedure altogether. These and other aspects of your question can be learned by studying the documentation on lit shaders, and the render pipeline overview.
Your answer
![](https://koobas.hobune.stream/wayback/20220613185445im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Render the scene only using a given a renderType tag 2 Answers
UI Blur shader not working 0 Answers
How do I use both a color's alpha and the texture's alpha in a shader pass? 0 Answers
How do I fix these clouds? 0 Answers
Weird rendering on Android: some materials become black, some sprites are replaced 1 Answer