projects
/
platform
/
upstream
/
glslang.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #2891 from dneto0/hlsl-namespace
[platform/upstream/glslang.git]
/
Test
/
spv.always-discard2.frag
1
#version 140
\r
2
in vec2 tex_coord;
\r
3
\r
4
void main (void)
\r
5
{
\r
6
vec4 white = vec4(1.0);
\r
7
vec4 black = vec4(0.2);
\r
8
vec4 color = white;
\r
9
\r
10
// First, cut out our circle
\r
11
float x = tex_coord.x*2.0 - 1.0;
\r
12
float y = tex_coord.y*2.0 - 1.0;
\r
13
\r
14
discard;
\r
15
\r
16
\r
17
gl_FragColor = color;
\r
18
\r
19
}
\r