summaryrefslogtreecommitdiff
path: root/tests/shaders/glsl-fs-sqrt-branch.frag
blob: a499fc533daed3756ef3f1dff8d51127071397bc (plain)
1
2
3
4
5
6
7
8
9
uniform vec4 args1, args2;

void main()
{
	if (args2.x != 0.0)
		gl_FragColor = sqrt(args1);
	else
		gl_FragColor = args2;
}