Welcome to mirror list, hosted at ThFree Co, Russian Federation.

round-even.frag « frag « shaders « opt « reference - github.com/KhronosGroup/SPIRV-Cross.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ab6f37adc14301092706f16d889798c6bcfa50bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#version 450

layout(location = 0) out vec4 FragColor;
layout(location = 0) in vec4 vA;
layout(location = 1) in float vB;

void main()
{
    FragColor = roundEven(vA);
    FragColor *= roundEven(vB);
}