SPV: Implement all matrix operators {+,-,*,/} for {matrix,scalar,vector}.

This commit is contained in:
John Kessenich
2015-12-12 12:28:14 -07:00
parent 494a02a2b0
commit 04bb8a01d6
9 changed files with 1140 additions and 76 deletions

View File

@@ -1,18 +1,18 @@
#version 150
uniform mat3 colorTransform;
varying vec3 Color;
uniform mat4 m, n;
in mat3 colorTransform;
in vec3 Color;
in mat4 m, n;
uniform mat4x3 um43;
uniform mat3x4 un34;
uniform mat2 um2;
uniform mat3 um3;
uniform mat4 um4;
in mat4x3 um43;
in mat3x4 un34;
in mat2 um2;
in mat3 um3;
in mat4 um4;
varying vec4 v;
in vec4 v;
varying vec3 u;
in vec3 u;
out vec4 FragColor;