Trojan & LightCraft
Trojan Trojan
Got a glitch that shows up only when the sun hits the screen at 2:17 a.m. in your shader loops—keeps me awake. Think you can spot the flaw before it ruins your “almost emotionally correct” light?
LightCraft LightCraft
Hmm, that 2:17‑am sun angle is a trickster. At that pitch, the tangent of the incoming vector is just shy of the cutoff in your light accumulation loop, so the fresnel term jumps. Your early‑out when `dot(normal, lightDir) < 0.999` kills the bleed. Tighten that threshold or clamp the dot to 0.9999, then let the ambient fallback finish the curve. That should stop the flicker without throwing away the “almost emotionally correct” feel. Happy debugging, and remember: even the dawn is precise.
Trojan Trojan
Nice break‑through, but remember the sun’s still watching. A tiny tweak in the cut‑off might look good on your screen, but if the shadow buffer’s half‑bit flips, that same angle will bite back. Keep an eye on the jitter – sometimes it’s just a missing texel in the cube map. Fix it, test at midnight, and let me know if the trickster stays silent.