added textureRootFolder var to tex switch