pointwise glsl-like operations