<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - Is there a way to send texture to uniform shader variable?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=1029</link>
		<description><![CDATA[The most recent posts in Is there a way to send texture to uniform shader variable?.]]></description>
		<lastBuildDate>Sun, 20 Jul 2014 18:28:11 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Is there a way to send texture to uniform shader variable?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7015#p7015</link>
			<description><![CDATA[<p>Thanks for advice anael. I&#039;l try to work with that.</p>]]></description>
			<author><![CDATA[dummy@example.com (Skywriter)]]></author>
			<pubDate>Sun, 20 Jul 2014 18:28:11 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7015#p7015</guid>
		</item>
		<item>
			<title><![CDATA[Re: Is there a way to send texture to uniform shader variable?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7014#p7014</link>
			<description><![CDATA[<p>It&#039;s already a texture, you don&#039;t need to send it again to the rendering context.<br />You don&#039;t even need to send it manually to the shader :</p><p>- reserve a texture slot in blender for your reflection texture, link a dummy texture for example &quot;water-reflexion-dummy.jpg&quot;<br /><span class="postimg"><img src="http://www.maratis3d.com/wp-content/uploads/2011/01/06.jpg" alt="http://www.maratis3d.com/wp-content/uploads/2011/01/06.jpg" /></span></p><p>- in script call &quot;enableRenderToTexture&quot; using the dummy texture name &quot;water-reflexion-dummy.jpg&quot;<br /><a href="http://wiki.maratis3d.org/index.php?title=EnableRenderToTexture">http://wiki.maratis3d.org/index.php?tit &#133; rToTexture</a></p><p>- in your shader use the texture slot using the dummy texture</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Sun, 20 Jul 2014 17:13:13 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7014#p7014</guid>
		</item>
		<item>
			<title><![CDATA[Is there a way to send texture to uniform shader variable?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=7011#p7011</link>
			<description><![CDATA[<p>Hi, im trying to implement water and i&#039;m looking for a way to render scene from camera for reflection. Maybe someone can help me with code sample c++ if any exists.<br />There is a function: </p><p>virtual void MRenderingContext::sendTextureImage(MImage *image, bool mipMap, bool filter, bool compress)=0;</p><p>But it takes a MImage as parameter. Is there a way to convert to MImage like </p><p>MTextureRef * colorTexture = camera-&gt;getRenderColorTexture();</p>]]></description>
			<author><![CDATA[dummy@example.com (Skywriter)]]></author>
			<pubDate>Sat, 19 Jul 2014 21:57:39 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=7011#p7011</guid>
		</item>
	</channel>
</rss>
