Shape from texture codebase