Fixed the new light masking implementation