20 lines
352 B
GLSL
20 lines
352 B
GLSL
|
#ifdef __cplusplus
|
||
|
#include <string>
|
||
|
std::string shader_plane_frag = R"("
|
||
|
#version 300 es
|
||
|
precision mediump float;
|
||
|
|
||
|
out vec4 FragColor;
|
||
|
|
||
|
uniform vec3 color;
|
||
|
|
||
|
void main() {
|
||
|
/** if (gl_fragcoord * gl_fragcoord < vec2(5, 5))
|
||
|
FragColor = vec4(1.0f, 0.5f, 0.2f, 1.0f);
|
||
|
else
|
||
|
discard;*/
|
||
|
FragColor = vec4(color, 1.0);
|
||
|
}
|
||
|
|
||
|
")";
|
||
|
#endif
|