diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.flowControl.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/spv.flowControl.frag | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.flowControl.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.flowControl.frag new file mode 100644 index 00000000000..f10c767307a --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.flowControl.frag @@ -0,0 +1,23 @@ +#version 140
+
+in float d;
+in vec4 bigColor, smallColor;
+in vec4 otherColor;
+
+in float c;
+in vec4 BaseColor;
+
+void main()
+{
+ vec4 color = BaseColor;
+ vec4 color2;
+
+ color2 = otherColor;
+
+ if (c > d)
+ color += bigColor;
+ else
+ color += smallColor;
+
+ gl_FragColor = color * color2;
+}
|