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