// very experimental :)
Currently this class represents the CoreImage CIKernel you can apply to a SCImage. The Kernel language is a subset of the OpenGL Shading Language. more information about the Kernel Language can be found here : http://developer.apple.com/documentation/GraphicsImaging/Reference/CIKernelLangRef/Introduction/chapter_1_section_1.html
here is the translation table between Kernel language Objects and SuperCollider objects
Kernel Language Object | SuperCollider Object |
sampler | SCImage |
__color | Color |
float | Number |
vec2, vec3, vec4 | Array |
__table | SCImage (basically the __table modifier just use Images as a data providers - LUT) |
creates a new SCImageKernel
shader |
optional. the shader code string. nil by default |
values |
optional. the values that match the kernel proc function defined in the shader string. nil by default |
bounds |
optional. not used for now. nil by default |
get or set the shader string.
get or set the values array. When setting the object indexes in the values Array must match the argument declaration order as defined in the main kernel vec4 routine. See examples for more info.
very basic verification to tell if all arguments of the shader are set.
compile the SCImageKernel object (and cache it).