2023-04-01 15:48:31 -04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
#include <string>
|
|
|
|
std::string shader_vert = R"("
|
|
|
|
#version 460
|
|
|
|
|
2023-04-02 23:49:58 -04:00
|
|
|
//layout (location = 0) in vec3 vertex;
|
|
|
|
//layout (location = 1) in vec2 uv;
|
|
|
|
layout (location = 0) in vec4 pos;
|
|
|
|
layout (location = 1) in vec4 dir;
|
2023-04-01 15:48:31 -04:00
|
|
|
|
2023-04-02 23:49:58 -04:00
|
|
|
out vec4 pos_;
|
2023-04-01 15:48:31 -04:00
|
|
|
|
|
|
|
uniform mat4 pvm;
|
|
|
|
|
|
|
|
void main() {
|
2023-04-02 23:49:58 -04:00
|
|
|
// passthrough point position to geometry shader
|
|
|
|
pos_ = pos;
|
2023-04-01 15:48:31 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
")";
|
|
|
|
#endif
|