Portal - RenderMan
Portal - RenderMan
Portal - RenderMan
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Multi-teleportation<br />
class geometryTeleport( string portalSpaces[] = {}; float portalThickness = 0.01 )<br />
{<br />
...<br />
public void displacement( ... )<br />
{<br />
uniform float i;<br />
for( i = 0; i < arraylength( portalSpaces ); i += 1 )<br />
{<br />
// (0,1), (1,0), (2,3), (3,2), ...<br />
string portalSpace1 = portalSpaces[ i ];<br />
string portalSpace2 = portalSpaces[ i + 1 - 2 * mod( i, 2 ) ];<br />
...<br />
}<br />
}<br />
...<br />
}