better sample from texture example