所有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 vec3 Vertex;
layout(location = 0) in vec3 Position;
layout(binding=0) uniform WorldMatrix // hgl/math/Math.h
{
@@ -26,5 +26,5 @@ layout(push_constant) uniform Consts {
void main()
{
gl_Position=vec4(Vertex,1.0)*(pc.local_to_world*world.mvp);
gl_Position=vec4(Position,1.0)*(pc.local_to_world*world.mvp);
}