blob: ec6949ff6455f3c8bfa0107d481411bfd63e75b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "common_header.h"
#define model_matrix UM4(0)
#define world_normal reg_v3_00
#define vcolor reg_v4_00
static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* clipcoord) {
static Vec4 p; p.xyz = in->vertex->position; p.w = 1;
mat4_applytovec4(uniforms->mvp, &p, clipcoord);
model_matrix;
}
static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color* color) {
*color = in->color;
world_normal;
return 1;
}
Program ssr_built_in_shader_unlit = {
vert, frag,
VARYING_COLOR
};
|