An unlit shader is a shader that does not respond to lighting in the scene. It displays colors or textures exactly as they are, without shading or shadows.
Click to reveal answer
beginner
What is a lit shader in Unity?
A lit shader calculates lighting effects like shadows, highlights, and reflections based on the scene's lights and material properties.
Click to reveal answer
intermediate
When should you use an unlit shader?
Use unlit shaders when you want flat colors or textures that don't change with lighting, such as UI elements, sprites, or stylized graphics.
Click to reveal answer
intermediate
How does a lit shader affect performance compared to an unlit shader?
Lit shaders require more calculations for lighting and shadows, so they usually use more processing power and can reduce performance compared to unlit shaders.
Click to reveal answer
beginner
Name one key visual difference between unlit and lit shaders.
Unlit shaders show colors without shading or shadows, while lit shaders show shading, highlights, and shadows that make objects look 3D and realistic.
Click to reveal answer
Which shader type ignores scene lighting in Unity?
AUnlit shader
BLit shader
CStandard shader
DPBR shader
✗ Incorrect
Unlit shaders do not respond to lighting and display colors as-is.
What effect does a lit shader add to an object?
AFlat color with no shading
BInvisible rendering
CNo texture
DLighting, shadows, and highlights
✗ Incorrect
Lit shaders calculate lighting effects to make objects look realistic.
Which shader is better for UI elements that should not change with lighting?
ALit shader
BTransparent shader
CUnlit shader
DPost-processing shader
✗ Incorrect
Unlit shaders keep colors consistent regardless of lighting, ideal for UI.
Why might you choose an unlit shader over a lit shader?
ATo improve performance and keep colors flat
BTo add realistic shadows
CTo simulate reflections
DTo enable dynamic lighting
✗ Incorrect
Unlit shaders are simpler and use less processing, improving performance.
Which shader type typically requires more GPU power?
AUnlit shader
BLit shader
CUI shader
DSprite shader
✗ Incorrect
Lit shaders calculate lighting and shadows, which uses more GPU resources.
Explain the main differences between unlit and lit shaders in Unity.
Think about how lighting affects the appearance of objects.
You got /4 concepts.
Describe scenarios where you would prefer to use an unlit shader instead of a lit shader.
Consider when lighting effects are not needed or wanted.
You got /4 concepts.
Practice
(1/5)
1. What is the main difference between Unlit and Lit shaders in Unity?
easy
A. Unlit shaders do not react to lighting, Lit shaders do
B. Unlit shaders are slower than Lit shaders
C. Lit shaders ignore shadows, Unlit shaders show shadows
D. Lit shaders only work on 2D objects
Solution
Step 1: Understand Unlit shader behavior
Unlit shaders display colors without any lighting or shadow effects.
Step 2: Understand Lit shader behavior
Lit shaders calculate lighting and shadows to create realistic visuals.
Final Answer:
Unlit shaders do not react to lighting, Lit shaders do -> Option A
Quick Check:
Lighting reaction = Unlit no, Lit yes [OK]
Hint: Unlit means no light effects, Lit means light and shadows [OK]
Common Mistakes:
Thinking Unlit shaders are slower
Believing Lit shaders ignore shadows
Assuming Lit shaders only work on 2D
2. Which of the following is the correct way to assign an Unlit shader to a material in Unity's Shader dropdown?
easy
A. Shaders > Unlit > Color
B. Shaders > Legacy Shaders > Transparent
C. Shaders > Standard
D. Shaders > Lit > PBR
Solution
Step 1: Locate Unlit shaders in Unity
Unlit shaders are found under the menu path: Shaders > Unlit > Color.
Step 2: Confirm correct shader assignment
Assigning 'Unlit > Color' applies an unlit shader that ignores lighting.
Final Answer:
Shaders > Unlit > Color -> Option A
Quick Check:
Unlit shader path = Shaders > Unlit > Color [OK]
Hint: Unlit shaders are under Shaders > Unlit in dropdown [OK]
Common Mistakes:
Choosing Standard shader which is lit
Selecting Legacy shaders unrelated to unlit
Picking Lit shaders for unlit materials
3. Given this Unity shader code snippet, what will be the visual result on a 3D object?