13 .vertex_in(0, Type::VEC3,
"pos")
14 .vertex_in(1, Type::VEC3,
"nor")
15 .vertex_out(smooth_normal_iface)
16 .fragment_out(0, Type::VEC4,
"fragColor")
17 .uniform_buf(0,
"SimpleLightingData",
"simple_lighting_data", Frequency::PASS)
18 .push_constant(Type::MAT4,
"ModelViewProjectionMatrix")
19 .push_constant(Type::MAT3,
"NormalMatrix")
20 .typedef_source(
"GPU_shader_shared.h")
21 .vertex_source(
"gpu_shader_3D_normal_vert.glsl")
22 .fragment_source(
"gpu_shader_simple_lighting_frag.glsl")
23 .do_static_compilation(
true);
#define GPU_SHADER_INTERFACE_INFO(_interface, _inst_name)
#define GPU_SHADER_CREATE_INFO(_info)