Draft fragment shader for rounded rectangles
This commit is contained in:
parent
0995950526
commit
a0234d5bce
4 changed files with 31 additions and 2 deletions
|
|
@ -10,6 +10,8 @@ layout (set = 0, binding = 0) uniform Globals {
|
|||
};
|
||||
|
||||
layout(location = 0) out vec4 o_Color;
|
||||
layout(location = 1) out vec2 o_Pos;
|
||||
layout(location = 2) out vec2 o_Scale;
|
||||
|
||||
void main() {
|
||||
mat4 i_Transform = mat4(
|
||||
|
|
@ -20,5 +22,8 @@ void main() {
|
|||
);
|
||||
|
||||
o_Color = i_Color;
|
||||
o_Pos = i_Pos;
|
||||
o_Scale = i_Scale;
|
||||
|
||||
gl_Position = u_Transform * i_Transform * vec4(v_Pos, 0.0, 1.0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue