public class CompileJSL
extends Object
This class is only used at build time to generate EffectPeer
implementations from JSL definitions, and shouldn't be included in the
resulting runtime jar file.
Each composed shader will follow the same basic pattern:
float mask(...) {
return coverage;
}
float4 paint(...) {
return rgbacolor;
}
void main(...) {
color = mask(...) * paint(...) * jsl_vertexColor;
}
The composable Mask+Paint parts include:
Masks
Solid
Texture
{Fill,Draw}Pgram
{Fill,Draw}Ellipse
{Fill,Draw}RoundRect
Paints
Color
LinearGradient (3 cycle method variants)
RadialGradient (3 cycle method variants)
ImagePattern
Texture{RGB,YV12,etc}