<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B</id>
	<title>MonoGameで遅延レンダリングをする - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B&amp;action=history"/>
	<updated>2026-06-05T16:28:52Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B&amp;diff=12730&amp;oldid=prev</id>
		<title>2020年4月8日 (水) 04:54にAdministratorによる</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B&amp;diff=12730&amp;oldid=prev"/>
		<updated>2020-04-08T04:54:30Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2020年4月8日 (水) 04:54時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l8&quot;&gt;8行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;8行目:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  clear(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  clear(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  draw(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  draw(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // 以降は同じ&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  // 以降は同じ&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  light = lighting(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  light = lighting(color, normal, depth);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
	<entry>
		<id>https://monobook.org/w/index.php?title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B&amp;diff=12729&amp;oldid=prev</id>
		<title>Administrator: ページの作成:「2020年4月時点のMonoGameではマルチプルレンダーターゲットが正常に動かない。  このためXNA時代に書かれたマルチプル…」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=MonoGame%E3%81%A7%E9%81%85%E5%BB%B6%E3%83%AC%E3%83%B3%E3%83%80%E3%83%AA%E3%83%B3%E3%82%B0%E3%82%92%E3%81%99%E3%82%8B&amp;diff=12729&amp;oldid=prev"/>
		<updated>2020-04-08T04:54:22Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「2020年4月時点の&lt;a href=&quot;/wiki/MonoGame&quot; class=&quot;mw-redirect&quot; title=&quot;MonoGame&quot;&gt;MonoGame&lt;/a&gt;では&lt;a href=&quot;/wiki/%E3%83%9E%E3%83%AB%E3%83%81%E3%83%97%E3%83%AB%E3%83%AC%E3%83%B3%E3%83%80%E3%83%BC%E3%82%BF%E3%83%BC%E3%82%B2%E3%83%83%E3%83%88&quot; title=&quot;マルチプルレンダーターゲット&quot;&gt;マルチプルレンダーターゲット&lt;/a&gt;が正常に動かない。  このため&lt;a href=&quot;/w/index.php?title=XNA&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;「XNA」 (存在しないページ)&quot;&gt;XNA&lt;/a&gt;時代に書かれたマルチプル…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;2020年4月時点の[[MonoGame]]では[[マルチプルレンダーターゲット]]が正常に動かない。&lt;br /&gt;
&lt;br /&gt;
このため[[XNA]]時代に書かれた[[マルチプルレンダーターゲット]]を使った[[遅延レンダリング]]のサンプルプログラムをそのまま動かそうとすると残念なことになる。&lt;br /&gt;
&lt;br /&gt;
== 概要 ==&lt;br /&gt;
[[XNA]]の教科書に載っている[[遅延レンダリング]]の実装例では[[マルチプルレンダーターゲット]]を利用して2回の[[ドローコール]]で前半部分を済ませているのが一般的である。&lt;br /&gt;
 // この２つ&lt;br /&gt;
 clear(color, normal, depth);&lt;br /&gt;
 draw(color, normal, depth);&lt;br /&gt;
&lt;br /&gt;
 // 以降は同じ&lt;br /&gt;
 light = lighting(color, normal, depth);&lt;br /&gt;
 final = combine(light, color);&lt;br /&gt;
&lt;br /&gt;
一方、[[MonoGame]]ではこの部分を6回もの[[ドローコール]]に分割する必要がある。&lt;br /&gt;
 clear(color);&lt;br /&gt;
 draw(color);&lt;br /&gt;
 &lt;br /&gt;
 clear(normal);&lt;br /&gt;
 draw(normal);&lt;br /&gt;
 &lt;br /&gt;
 clear(depth);&lt;br /&gt;
 draw(depth);&lt;br /&gt;
 &lt;br /&gt;
 // 以降は同じ&lt;br /&gt;
 light = lighting(color, normal, depth);&lt;br /&gt;
 final = combine(light, color);&lt;br /&gt;
&lt;br /&gt;
それでも[[ポイントライト]]などが数十から数百も存在するという状況では圧倒的に[[ドローコール]]を削減できる。&lt;br /&gt;
&lt;br /&gt;
== 実装例 ==&lt;br /&gt;
後ほど[[github]]にアップする。&lt;br /&gt;
&lt;br /&gt;
[[category: MonoGame]]&lt;/div&gt;</summary>
		<author><name>Administrator</name></author>
	</entry>
</feed>