Lighting Write

Fix lighting values not being written