/// <summary> /// マテリアルを用いてテクスチャに画像を描画する。 /// </summary> /// <param name="target">描画先</param> /// <param name="material">マテリアル</param> protected void DrawOnTexture2DWithMaterial(RenderTexture2D target, Material2D material) { if (disposed) { throw new ObjectDisposedException(GetType().FullName); } coreInstance.DrawOnTexture2DWithMaterial(IG.GetRenderTexture2D(target), IG.GetMaterial2D(material)); }
/// <summary> /// マテリアルを用いてテクスチャに画像を描画する。 /// </summary> /// <param name="target">描画先</param> /// <param name="material">マテリアル</param> public void DrawOnTexture2DWithMaterial(RenderTexture2D target, Material2D material) { SwigObject.DrawOnTexture2DWithMaterial(IG.GetRenderTexture2D(target), IG.GetMaterial2D(material)); }