compute texture