Fixed lighting heightmap bug and added partial opacity tests for full lighting