glslang testing: Remove dependence on testfiles from LunarGLASS.

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31512 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-06-17 16:15:09 +00:00
parent ab556eaaea
commit 2f21fccee9
82 changed files with 2145 additions and 80 deletions

50
Test/matrix2.frag Normal file
View File

@@ -0,0 +1,50 @@
#version 150
uniform mat3 colorTransform;
varying vec3 Color;
uniform mat4 m, n;
uniform mat4x3 um43;
uniform mat3x4 un34;
uniform mat2 um2;
uniform mat3 um3;
uniform mat4 um4;
varying vec4 v;
varying vec3 u;
out vec4 FragColor;
void main()
{
mat3x4 m34 = outerProduct(v, u);
m34 += mat3x4(4.3);
FragColor = vec4(Color, 1.0);
FragColor *= vec4(FragColor * m34, 1.0);
m34 *= v.x;
mat4 m44 = mat4(un34);
m44 += m34 * um43;
FragColor += (-m44) * v;
FragColor *= matrixCompMult(m44, m44);
m34 = transpose(um43);
FragColor *= vec4(FragColor * m34, 1.0);
FragColor *= vec4(determinant(um4));
mat2 inv = inverse(um2);
FragColor *= vec4(inv[0][0], inv[1][0], inv[0][1], inv[1][1]);
mat3 inv3 = inverse(um3);
FragColor *= vec4(inv3[2][1]);
mat4 inv4 = inverse(um4);
FragColor *= inv4;
FragColor = vec4(FragColor * matrixCompMult(un34, un34), FragColor.w);
}