@:directlyUsed@:src({
@param var texA:SamplerCube;
@param var texB:SamplerCube;
@const var isMax:Bool;
@param var mat:Mat3;
function fragment() {
var uv = calculatedUV * 2.0 - 1.0;
var dir = vec3(uv, 1) * mat;
var a = texA.get(dir);
var b = texB.get(dir);
pixelColor = isMax ? max(a, b) : min(a, b);
};
})@:build(hxsl.Macros.buildShader())@:autoBuild(hxsl.Macros.buildShader())