fixup misuse of types in smoothstep
fixup implicit cast of Scattering to vec3