Now renders to texture before the cg shader is applied.