Optimized a bit OSL shading.