Here's the composition that brought this to mind - I'd been curious about raytracing with a core image kernel for awhile. It's always such a pain because of embargoes on the language, and unsupported statements. It does basically work though (of course).
This is a translation of the demoscene "Road To Ribbon". It works fine at time 0~1ish, until the ribbon goes offscreen. The glsl shader is able to receive the time value for the function that draws the ribbon, to keep it offsetting as the world offsets. -gt On Sat, Nov 10, 2012 at 8:07 PM, George Toledo <gtole...@gmail.com> wrote: > I wish to pass a time value to a function that isn't in the main cikernel. > > How does one access a variable from the ci kernel - declared in the kernel > so as to make an input port - in a function before the actual kernel? > > Alternately, is there any other way to pass info from an input port to a > function (not the main kernel)? > > > Thanks, > George Toledo > >
road to ribbon - Core Image.qtz
Description: Binary data
_______________________________________________ Do not post admin requests to the list. They will be ignored. Quartzcomposer-dev mailing list (Quartzcomposer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com