fix cloud depth
refactor texel/buffer wrapping