COSC-3P98-Final-Project/include/shaders/test.frag

18 lines
330 B
GLSL
Raw Permalink Normal View History

2023-02-08 23:23:42 -05:00
#ifdef __cplusplus
#include <string>
std::string shader_test_frag = R"("
2023-02-11 16:26:47 -05:00
#version 300 es
precision mediump float;
2023-02-08 23:23:42 -05:00
2023-02-11 16:26:47 -05:00
out vec4 FragColor;
2023-02-08 23:23:42 -05:00
2023-02-11 16:26:47 -05:00
void main() {
/** if (gl_fragcoord * gl_fragcoord < vec2(5, 5))
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
else
discard;*/
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
2023-02-08 23:23:42 -05:00
}
2023-02-11 16:26:47 -05:00
")";
2023-02-08 23:23:42 -05:00
#endif