<?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=HLSL%E3%81%A7Gaussian_Blur</id>
	<title>HLSLでGaussian Blur - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://monobook.org/w/index.php?action=history&amp;feed=atom&amp;title=HLSL%E3%81%A7Gaussian_Blur"/>
	<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=HLSL%E3%81%A7Gaussian_Blur&amp;action=history"/>
	<updated>2026-06-04T02:56:53Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://monobook.org/w/index.php?title=HLSL%E3%81%A7Gaussian_Blur&amp;diff=10726&amp;oldid=prev</id>
		<title>2019年1月22日 (火) 04:41に180.15.192.154による</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=HLSL%E3%81%A7Gaussian_Blur&amp;diff=10726&amp;oldid=prev"/>
		<updated>2019-01-22T04:41:02Z</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;2019年1月22日 (火) 04:41時点における版&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-l48&quot;&gt;48行目:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;48行目:&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;br&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;br&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;&amp;lt;/syntaxhighlight&amp;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;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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 colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;[[category: MonoGame]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&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;[[category: HLSL]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>180.15.192.154</name></author>
	</entry>
	<entry>
		<id>https://monobook.org/w/index.php?title=HLSL%E3%81%A7Gaussian_Blur&amp;diff=10725&amp;oldid=prev</id>
		<title>180.15.192.154: ページの作成:「HLSLで画面全体（＝画面全体をテクスチャ化したもの）にGaussian Blurを掛けたい。  「ぼけた画像からフェードイン」「ぼ…」</title>
		<link rel="alternate" type="text/html" href="https://monobook.org/w/index.php?title=HLSL%E3%81%A7Gaussian_Blur&amp;diff=10725&amp;oldid=prev"/>
		<updated>2019-01-22T04:40:40Z</updated>

		<summary type="html">&lt;p&gt;ページの作成:「&lt;a href=&quot;/wiki/HLSL&quot; class=&quot;mw-redirect&quot; title=&quot;HLSL&quot;&gt;HLSL&lt;/a&gt;で画面全体（＝画面全体をテクスチャ化したもの）に&lt;a href=&quot;/w/index.php?title=Gaussian_Blur&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;「Gaussian Blur」 (存在しないページ)&quot;&gt;Gaussian Blur&lt;/a&gt;を掛けたい。  「ぼけた画像からフェードイン」「ぼ…」&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[HLSL]]で画面全体（＝画面全体をテクスチャ化したもの）に[[Gaussian Blur]]を掛けたい。&lt;br /&gt;
&lt;br /&gt;
「ぼけた画像からフェードイン」「ぼかしながらフェードアウト」という[[ポケモン]]などの[[ゲーム]]のシーン切り替え時によく使われるエフェクトのアレ。&lt;br /&gt;
&lt;br /&gt;
== 実装例 ==&lt;br /&gt;
[[Android]]版の[[MonoGame]]で動かす前提（[[OpenGL ES]]で動かす前提）なので、[[シェーダーモデル]]は3.0にしてある。&amp;lt;syntaxhighlight lang=&amp;quot;text&amp;quot;&amp;gt;&lt;br /&gt;
#define RADIUS  7&lt;br /&gt;
#define KERNEL_SIZE (RADIUS * 2 + 1)&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
// Globals.&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
float weights[KERNEL_SIZE];&lt;br /&gt;
float2 offsets[KERNEL_SIZE];&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
// Textures.&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
sampler colorMapTexture : register(s0);&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
// Pixel Shaders.&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
float4 PS_MAIN(float4 position : SV_Position, float4 col : COLOR0, float2 uv : TEXCOORD0) : COLOR0&lt;br /&gt;
{&lt;br /&gt;
    float4 color = float4(0.0f, 0.0f, 0.0f, 0.0f);&lt;br /&gt;
&lt;br /&gt;
    for (int i = 0; i &amp;lt; KERNEL_SIZE; ++i)&lt;br /&gt;
        color += tex2D(colorMapTexture, uv + offsets[i]) * weights[i];&lt;br /&gt;
    &lt;br /&gt;
    return color;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
// Techniques.&lt;br /&gt;
//-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
technique GaussianBlur&lt;br /&gt;
{&lt;br /&gt;
    pass Pass1&lt;br /&gt;
    {&lt;br /&gt;
        PixelShader = compile ps_3_0 PS_MAIN();&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>180.15.192.154</name></author>
	</entry>
</feed>