started moving calculations into the texture