blob: b1345e0b50bd023210b6320a628a9276587dac8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "common_header.h"
/*uniforms*/
#define lightdir UV3(0)
#define shinees UN(0)
/*vertex output*/
#define uv reg_v2_00
static void vert(UniformCollection* uniforms, VertexShaderIn* in, Vec4* homocoord) {
static Vec4 p; p.xyz = in->vertex->position; p.w = 1;
mat4_applytovec4(uniforms->mvp, &p, homocoord);
}
static bool frag(UniformCollection* uniforms, FragmentShaderIn* in, Color* color) {
return 1;
}
Program ssr_built_in_shader_default = { vert, frag };
|