We describe the implementation of a simple real-time GPU-based algorithm to compute a spherical harmonic-based visibility function for environment lighting.