reduce

11 views
Skip to first unread message

thenwithexpandedwingshesteershisflight

unread,
Nov 20, 2011, 8:20:18 PM11/20/11
to Penumbra
how does reduce work in penumbra ? does it use in a vertex shader to
send vert to a given point with fragments accumulating via gl_blend
gl_func_add ? or does it loop in the fragment shader ?

Zach Tellman

unread,
Nov 20, 2011, 9:38:44 PM11/20/11
to penumb...@googlegroups.com, Penumbra
It is an iterative shader, which turns a texture into a texture with one-quarter the area. This is repeated until we come to a 1x1 texture.

Zach

thenwithexpandedwingshesteershisflight

unread,
Nov 27, 2011, 10:06:02 PM11/27/11
to Penumbra
can I reduce over an area of a texture ? Or put another way, can I
associate a small texture or subset of a texture with every point in
another texture - I want to represent connections between points you
see.

Zach Tellman

unread,
Nov 27, 2011, 11:56:13 PM11/27/11
to penumb...@googlegroups.com
You can only reduce over the entire texture. However, you can always
render a subset of the full texture to a smaller texture, and reduce
over that.

Zach

Reply all
Reply to author
Forward
0 new messages