<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Is there a way to send texture to uniform shader variable?]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=1029&amp;type=atom"/>
	<updated>2014-07-20T18:28:11Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=1029</id>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to send texture to uniform shader variable?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7015#p7015"/>
			<content type="html"><![CDATA[<p>Thanks for advice anael. I&#039;l try to work with that.</p>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2014-07-20T18:28:11Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7015#p7015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Is there a way to send texture to uniform shader variable?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7014#p7014"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2014-07-20T17:13:13Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7014#p7014</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Is there a way to send texture to uniform shader variable?]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=7011#p7011"/>
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Skywriter]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2629</uri>
			</author>
			<updated>2014-07-19T21:57:39Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=7011#p7011</id>
		</entry>
</feed>
