blob: c06a7fb35b43774ccef9d3174f95b02b7ec86777 [file] [log] [blame]
diagnostic(off, derivative_uniformity);
diagnostic(off, chromium.unreachable_code);
struct FSOut {
@location(0) sk_FragColor: vec4<f32>,
};
struct _GlobalUniforms {
a: f32,
b: f32,
c: f32,
d: vec4<f32>,
e: vec4<f32>,
};
@binding(0) @group(0) var<uniform> _globalUniforms: _GlobalUniforms;
fn _skslMain(_skParam0: vec2<f32>) -> vec4<f32> {
{
let _skTemp0 = 2.0;
let _skTemp1 = refract(vec2<f32>(6e+26, 0), vec2<f32>(2.0, 0), _skTemp0).x;
var result: vec4<f32> = vec4<f32>(_skTemp1);
let _skTemp2 = refract(vec2<f32>(_globalUniforms.a, 0), vec2<f32>(_globalUniforms.b, 0), _globalUniforms.c).x;
result.x = _skTemp2;
let _skTemp3 = refract(_globalUniforms.d, _globalUniforms.e, _globalUniforms.c);
result = _skTemp3;
result = vec4<f32>((vec2<f32>(0.5, -0.8660254)), result.zw);
result = vec4<f32>((vec3<f32>(0.5, 0.0, -0.8660254)), result.w);
result = vec4<f32>(0.5, 0.0, 0.0, -0.8660254);
return result;
}
}
@fragment fn main() -> FSOut {
var _stageOut: FSOut;
_stageOut.sk_FragColor = _skslMain(/*fragcoord*/ vec2<f32>());
return _stageOut;
}