20 lines
344 B
GLSL
20 lines
344 B
GLSL
#version 320 es
|
|
|
|
struct UiRectFragment {
|
|
highp vec4 device_position;
|
|
highp vec2 position;
|
|
highp vec2 size;
|
|
highp vec2 border_size;
|
|
highp vec2 screen_size;
|
|
highp vec2 tex_coord;
|
|
highp vec4 color;
|
|
};
|
|
|
|
in UiRectFragment out_rect;
|
|
|
|
layout(location = 0) out highp vec4 color;
|
|
|
|
void main() {
|
|
color = out_rect.color;
|
|
}
|