所有vertex shader传入数据Vertex改名为Position

This commit is contained in:
2020-09-05 18:56:01 +08:00
parent 134fa86c09
commit 7f2ffa2e7c
19 changed files with 46 additions and 46 deletions

View File

@@ -1,6 +1,6 @@
#version 450 core
layout(location = 0) in vec2 Vertex;
layout(location = 0) in vec2 Position;
layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
{
@@ -22,5 +22,5 @@ layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
void main()
{
gl_Position=vec4(Vertex,0.0,1.0)*world.ortho;
gl_Position=vec4(Position,0.0,1.0)*world.ortho;
}