Module gpuFlux

Class FluxSensorArea


public class FluxSensorArea extends FluxSensor
GPU-flux wrapper for SensorArea + SensorParallelogram. Extends FluxSensor so it is compatible with all existing Vector<FluxSensor> collections throughout the GPU-flux pipeline without requiring any changes to those classes. The serialisation format is identical to FluxSensor so the existing GPU shader pipeline accepts it without modification. NOTE: the GPU shader currently performs a disc intersection test (|p|² ≤ 1 in local coordinates). After scaling by (1/halfLength, 1/halfWidth, 1) the test becomes an ellipse in sensor space — a conservative approximation of the true rectangle. The CPU path (LightModel / SceneVisitor) uses the exact rectangular SensorParallelogram geometry.
Author:
MH at YNL 2026