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 #2908 from Biswa96/cmake-spirv-remap
[platform/upstream/glslang.git]
/
Test
/
spv.matFun.vert
1
#version 400
\r
2
\r
3
uniform bl {
\r
4
uniform mat4 m4;
\r
5
uniform mat3 m3;
\r
6
} bName;
\r
7
\r
8
in vec3 v3;
\r
9
\r
10
vec3 xf(mat3 m, vec3 v)
\r
11
{
\r
12
return v * m;
\r
13
}
\r
14
\r
15
mat3 Mat3(mat4 m)
\r
16
{
\r
17
return mat3(m[0].xyz, m[1].xyz, m[2].xyz);
\r
18
}
\r
19
\r
20
vec3 mxv(mat4 m4, vec3 v)
\r
21
{
\r
22
return v * Mat3(m4);
\r
23
}
\r
24
\r
25
void main()
\r
26
{
\r
27
gl_Position = vec4(mxv(bName.m4, v3) + xf(bName.m3, v3), 1.0);
\r
28
}
\r