Knowledge / Animation / VFX / Game Design / Lighting, rendering and shaders

Lighting, rendering and shaders

Animation / VFX / Game Design (B.Sc / B.Des) · 3D · free study notes for exams, placements and interviews

In short

Lighting, rendering and shading are the stages that turn geometry and textures into a final image: lights describe where energy comes from, shaders describe how a surface responds to it, and the renderer solves the light transport and writes pixels. They decide whether a shot reads as real, and they consume most of a studio's compute budget, so they are examined heavily in B.Sc/B.Des animation and VFX syllabi and tested in placement rounds at Indian studios and game companies (DNEG Mumbai, Framestore Mumbai, Prime Focus, Redchillies.vfx, Assemblage, Green Gold, Lakshya Digital, SuperGaming, Nazara/Rockstar India; the Technicolor group - MPC and Technicolor Games Bengaluru - ceased operations in 2025). Interviews ask the physics (inverse square law, energy conservation, Fresnel), the production craft (three-point and HDRI lighting, AOVs, render budgets) and the pipeline (linear workflow, ACES, denoising, render-farm costs per frame in rupees). Game-side roles add the real-time constraint: everything must fit in a 16.67 ms frame at 60 fps.

Explained

Light: types, units and behaviour

Cinematic lighting craft

Shading models and PBR

Rendering algorithms and global illumination

Render pipeline, output and management

Real-time versus offline

Key points

Formulas and examples

Rendering equation: Lo(x, ωo) = Le(x, ωo) + ∫Ω fr(x, ωi, ωo) · Li(x, ωi) · (n·ωi) dωi
Lo, Le, Li = outgoing, emitted, incoming radiance (W/m²·sr); fr = BRDF (1/sr); n·ωi = cosine of incidence; Ω = hemisphere.
Lambert diffuse: Ld = (ρ/π) · I · max(0, N·L) — ρ = albedo (0-1), I = incident irradiance, N, L = unit normal and light vectors. The 1/π normalises energy over the hemisphere.
Blinn-Phong specular: Ls = ks · I · (N·H)n, H = (L + V)/|L + V| — n = specular exponent (shininess), ks = specular coefficient.
Microfacet specular: fs = D(h)·F(θ)·G(l, v) / (4 (N·L)(N·V)) — D = GGX normal distribution, F = Fresnel, G = geometry term.
Schlick's Fresnel: F(θ) = F0 + (1 − F0)(1 − cos θ)5 — F0 = reflectance at normal incidence, θ = angle between view and half-vector.
F0 from IOR (dielectric): F0 = ((n − 1)/(n + 1))² — n = index of refraction.
GGX roughness mapping: α = roughness² (common convention); Blinn exponent ≈ 2/α² − 2.
Inverse square law: E = I / d² — E = illuminance (lux), I = luminous intensity (cd), d = distance (m).
Stops: stops = log2(E1/E2); exposure scale = 2stops.
Snell's law: n1 sin θ1 = n2 sin θ2; critical angle θc = arcsin(n2/n1) for n1 > n2.
Beer-Lambert absorption: I = I0 · e−σa · t — σa = absorption coefficient (1/m), t = path length (m).
Monte Carlo estimate: ⟨I⟩ = (1/N) Σ f(xi)/p(xi); standard error ∝ 1/√N — N = samples, p = sampling pdf.
Render time: total = frames × samples-driven time per frame / number of machines (wall-clock, ignoring queue overhead).
Motion blur: shutter angle 180° = exposure of half a frame = 1/48 s at 24 fps.

Example 1 - inverse square law and exposure. A point light gives 800 lux on a character at 2 m. The character is moved to 5 m.

Example 2 - Fresnel F0 from IOR, and the metal case. Glass with n = 1.5, viewed head-on and at grazing 80°.

Example 3 - path-tracing samples and farm time in rupees. A shot renders with noticeable noise at 256 samples per pixel, 4 minutes per frame per machine.

Example 4 - total internal reflection in a water surface. Light inside water (n1 = 1.33) hitting air (n2 = 1.0).

Example 5 - real-time frame budget. A mobile game targets 60 fps.

RasterizationRay / path tracing
VisibilityZ-buffer, project trianglesRay-scene intersection via BVH
ReflectionsScreen-space, probes, cubemapsTrue, including off-screen
Global illuminationBaked lightmaps, probes, SSGINative, multi-bounce
NoiseNone (aliasing instead)Monte Carlo noise, needs samples
Cost per frameMillisecondsMinutes to hours
Typical useGames, previs, virtual productionFeatures, episodics, ads, arch-viz
Shading modelEnergy conservingSpecular formCostUse today
LambertDiffuse onlyNoneLowestMatte, previs, lightmap diffuse
Phong / Blinn-PhongNo(R·V)n / (N·H)nLowLegacy, stylised, mobile
Cook-Torrance GGXYesD·F·G/(4(N·L)(N·V))MediumPBR standard everywhere
Layered uber (Standard Surface/OpenPBR)Yes, with compensationMulti-lobe + coat + SSSHighFilm and episodic look dev

Where it is used

Interview questions

Common mistakes

Related topics

3D modelling, texturing and UV mapping · Rigging and character animation · Compositing and matchmoving in Nuke · Colour science and ACES pipelines · Real-time engines and game optimisation · VFX simulation: fluids, smoke and volumetrics

Open in the Knowledge reader →Find jobs →