Added class to support main texture calculations