- x.r = texture1D(PREFIX(expansion_curve_tex), x.r).x;
- x.g = texture1D(PREFIX(expansion_curve_tex), x.g).x;
- x.b = texture1D(PREFIX(expansion_curve_tex), x.b).x;
+ vec3 f = vec3(greaterThan(x.rgb, vec3(PREFIX(beta))));
+ x = vec4(mix(a, b, f), x.a);