Added gl_PerVertex outputs
This commit is contained in:
parent
7087d7d14e
commit
fb053a5011
13 changed files with 26 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ layout (location = 2) out vec2 outUV;
|
|||
layout (location = 3) out vec3 outViewVec;
|
||||
layout (location = 4) out vec3 outLightVec;
|
||||
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
mat4 boneTransform = ubo.bones[inBoneIDs[0]] * inBoneWeights[0];
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -21,6 +21,11 @@ layout (location = 1) out vec3 outNormal;
|
|||
layout (location = 2) out vec3 outViewVec;
|
||||
layout (location = 3) out vec3 outLightVec;
|
||||
|
||||
out gl_PerVertex
|
||||
{
|
||||
vec4 gl_Position;
|
||||
};
|
||||
|
||||
void main()
|
||||
{
|
||||
outUV = inUV * 2.0 + ubo.uvOffset;
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue