Works with generated texture