tracing.glsl: trace() function