﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AJehuty%2FGSoC_2013%2FDiscussions%2FTexture_Lookup</id>
	<title>利用者:Jehuty/GSoC 2013/Discussions/Texture Lookup - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AJehuty%2FGSoC_2013%2FDiscussions%2FTexture_Lookup"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Jehuty/GSoC_2013/Discussions/Texture_Lookup&amp;action=history"/>
	<updated>2026-10-06T11:04:51Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Jehuty/GSoC_2013/Discussions/Texture_Lookup&amp;diff=143495&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Jehuty/GSoC_2013/Discussions/Texture_Lookup&amp;diff=143495&amp;oldid=prev"/>
		<updated>2018-06-28T20:57:24Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 20:57時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Jehuty/GSoC_2013/Discussions/Texture_Lookup&amp;diff=143494&amp;oldid=prev</id>
		<title>wiki&gt;Jehuty: /* Texture Lookup */</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Jehuty/GSoC_2013/Discussions/Texture_Lookup&amp;diff=143494&amp;oldid=prev"/>
		<updated>2013-08-17T18:39:25Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Texture Lookup&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Texture Lookup ===&lt;br /&gt;
&lt;br /&gt;
==== The script ====&lt;br /&gt;
For early texture lookup tests, the OSL script below has been used to call the texture3d callback method in OSLServices.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;quot;stdosl.h&amp;quot;&lt;br /&gt;
#include &amp;quot;node_color.h&amp;quot;&lt;br /&gt;
&lt;br /&gt;
color image_texture_lookup(string filename, string color_space, &lt;br /&gt;
float x, float y, float z, output float Alpha)&lt;br /&gt;
{ &lt;br /&gt;
	point P = point (x, y, z);&lt;br /&gt;
	color rgb = color (&amp;quot;rgb&amp;quot;, 0, 0, 0);&lt;br /&gt;
&lt;br /&gt;
	float result = 0;&lt;br /&gt;
	result = (float)texture3d(filename, P, &amp;quot;wrap&amp;quot;, &amp;quot;periodic&amp;quot;, &amp;quot;alpha&amp;quot;, Alpha);&lt;br /&gt;
&lt;br /&gt;
	if (result != 0)&lt;br /&gt;
		rgb = rgb + result;&lt;br /&gt;
	else&lt;br /&gt;
		rgb = color (&amp;quot;rgb&amp;quot;, 1, 1, 1);&lt;br /&gt;
&lt;br /&gt;
	return rgb;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
shader volume_texture_shader(&lt;br /&gt;
	point Vector = P,&lt;br /&gt;
	string filename = &amp;quot;&amp;quot;,&lt;br /&gt;
	string color_space = &amp;quot;sRGB&amp;quot;,&lt;br /&gt;
	float projection_blend = 0.0,&lt;br /&gt;
	output color Color = 0.0,&lt;br /&gt;
	output float Alpha = 1.0)&lt;br /&gt;
{&lt;br /&gt;
	point p = Vector;&lt;br /&gt;
&lt;br /&gt;
	Color = image_texture_lookup(filename, color_space, p[0], p[1], p[2], Alpha);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>wiki&gt;Jehuty</name></author>
		
	</entry>
</feed>