Using sub-squares instead of heights when calculating texture coordinates