Restored 2D gradient texture rendering, until we are sure of the correct method