XML Feeds

.

[jitter] Re: [sharingmakesmesleepy]time warp

Andrew Benson andrewb at cycling74.com
Tue Sep 18 00:02:00 MDT 2007


> how do you distinguish between the two in the shader?
> i know in this case, one is 2drect and one is 3d, but what if you had two textures of the same dimension. how does the shader know which is which?
>
>   
Hi Rob,
The @texture can have multiple arguments, which allows one to do 
multi-texturing.  Within the shader .jxs file, you may notice that the 2 
textures are bound as "int" params, with the values 0 and 1 
respectively.  The first argument to the @texture is texture 0, and the 
second is texture 1.  These are then referred to within the shader as 
sampler__ types with the name given in the param binding XML code. 

Andrew B.


More information about the jitter mailing list