Project 03

Afreen Ahmed



Interactive 2.5D Lotus Rendering with Firefly Illumination

Input Assets

The input images were generated with Gemini's Nano Banana model.

Base Color Image
Normal Map
Depth Map

Shader Implementation

  1. Diffuse and Specular Lighting: Implemented per-pixel diffuse and specular shading using the normal map to simulate light interaction across the lotus surface.
  2. Normal Map Shading: Normals generated by Gemini Nano were used to compute realistic surface lighting and highlight curvature details.
  3. Depth-Based Shadowing: Shadows and subsurface scattering were produced using the depth map to create soft 2.5D shadows.
  4. Firefly Glow: A gaussian falloff was used to create a soft orb of warm light around the keyboard-controlled firefly.
  5. Procedural Animation: The ambient firefly swarm was generated procedurally using time-varying sine and noise-based motion paths and twinkling behavior.



iChannel0: Normal map, iChannel1: Depth map, iChannel2: Color image, iChannel3: Keyboard