texturing for general path tracing