Fix range error with ambient texture
Merge ambient