@:src({
@input var input:{ var color : Vec3};
var pixelColor:Vec4;
@const var additive:Bool;
function fragment() {
if (additive) pixelColor.rgb += input.color else pixelColor.rgb *= input.color;
};
})@:build(hxsl.Macros.buildShader())@:autoBuild(hxsl.Macros.buildShader())