Rename Geometry2D to Mesh2D and move it to iced_wgpu
This commit is contained in:
parent
0d620b7701
commit
5ca98b113e
12 changed files with 184 additions and 198 deletions
17
wgpu/src/shader/triangle.vert
Normal file
17
wgpu/src/shader/triangle.vert
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#version 450
|
||||
|
||||
layout(location = 0) in vec2 i_Position;
|
||||
layout(location = 1) in vec4 i_Color;
|
||||
|
||||
layout(location = 0) out vec4 o_Color;
|
||||
|
||||
layout (set = 0, binding = 0) uniform Globals {
|
||||
mat4 u_Transform;
|
||||
float u_Scale;
|
||||
};
|
||||
|
||||
void main() {
|
||||
vec2 p_Position = i_Position * u_Scale;
|
||||
gl_Position = u_Transform * vec4(p_Position, 0.0, 1.0);
|
||||
o_Color = i_Color;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue