SPV tests: Turn on some more tests related to currently pending issues.
This commit is contained in:
@@ -1,26 +1,15 @@
|
||||
#version 130
|
||||
|
||||
//#define TEST_POST_110
|
||||
|
||||
uniform mat3 colorTransform;
|
||||
varying vec3 Color;
|
||||
in vec3 Color;
|
||||
uniform mat4 m, n;
|
||||
|
||||
#ifdef TEST_POST_110
|
||||
uniform mat4x3 um43;
|
||||
uniform mat3x4 un34;
|
||||
#else
|
||||
uniform mat4 um43;
|
||||
uniform mat4 un34;
|
||||
#endif
|
||||
|
||||
varying vec4 v;
|
||||
in vec4 v;
|
||||
|
||||
#ifdef TEST_POST_110
|
||||
varying vec3 u;
|
||||
#else
|
||||
varying vec4 u;
|
||||
#endif
|
||||
in vec3 u;
|
||||
|
||||
void main()
|
||||
{
|
||||
@@ -29,24 +18,14 @@ void main()
|
||||
|
||||
if (m != n)
|
||||
gl_FragColor += v;
|
||||
else {
|
||||
else {
|
||||
gl_FragColor += m * v;
|
||||
gl_FragColor += v * (m - n);
|
||||
}
|
||||
|
||||
#ifdef TEST_POST_110
|
||||
mat3x4 m34 = outerProduct(v, u);
|
||||
m34 += mat4(v.x);
|
||||
m34 += mat4(u, u.x, u, u.x, u, u.x, u.x);
|
||||
#else
|
||||
mat4 m34 = mat4(v.x*u.x, v.x*u.y, v.x*u.z, v.x*u.w,
|
||||
v.y*u.x, v.y*u.y, v.y*u.z, v.y*u.w,
|
||||
v.z*u.x, v.z*u.y, v.z*u.z, v.z*u.w,
|
||||
v.w*u.x, v.w*u.y, v.w*u.z, v.w*u.w);
|
||||
m34 += mat4(v.x);
|
||||
m34 += mat4(u, u.x, u, u.x, u, u.x, u.x);
|
||||
}
|
||||
|
||||
#endif
|
||||
mat3x4 m34 = outerProduct(v, u);
|
||||
m34 += mat3x4(v.x);
|
||||
m34 += mat3x4(u, u.x, u, u.x, u, u.x);
|
||||
|
||||
if (m34 == un34)
|
||||
gl_FragColor += m34 * u;
|
||||
|
||||
Reference in New Issue
Block a user