所有vertex shader传入数据Vertex改名为Position
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user