XML Feeds

.

[jitter] multiples and shaders

Joshua Kit Clayton jkc at musork.com
Thu Oct 11 19:19:54 MDT 2007


On Oct 11, 2007, at 4:37 PM, Wesley Smith wrote:

> Sorry, shaders get applied uniformly across all instances drawn with
> jit.gl.multiple.

If you have N shaders for M object instances where N is significantly  
smaller than M, one thing which is possible is to use N instances of  
jit.gl.multiple for each different shader. Then before sending the  
items to jit.gl.multiple to render, separate them into N different  
matrices accordingly. The same thing applies to textures, where even  
though you can specify a different shader to jit.gl.multiple, it is  
most likely more efficient to sent the texture once per  
jit.gl.multiple render, if the number of textures N is significantly  
smaller than the M object instances being rendered.

Hope this makes sense.

-Joshua


More information about the jitter mailing list