Module gpuFlux

Class FluxAreaLight


public class FluxAreaLight extends FluxLight
GPU serialiser for the standalone AreaLight node (RECTANGLE or DISC).

Serialisation layout (matches arealight.h AreaLight struct):

   Light base          (type = LIGHT_AREA)
   float exponent
   int   shape         (0 = RECTANGLE, 1 = DISC)
   Vec3  u             half-extent in X, world space
   Vec3  v             half-extent in Y, world space
   Vec3  norm          surface normal,  world space
 
Author:
MH at YNL 2026