Skip to content

Commit 54ae86e

Browse files
committed
2 parents 4c9b99c + b8671be commit 54ae86e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

include/nbl/builtin/shader/loader/mtl/vertex_impl.glsl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,14 @@ layout (set = 1, binding = 0, row_major, std140) uniform UBO
4848
#define _NBL_VERT_MAIN_DEFINED_
4949
void main()
5050
{
51-
LocalPos = nbl_glsl_fetchVtxPos(gl_VertexIndex, gl_DrawID);
51+
//TODO: 0 -> gl_DrawID
52+
LocalPos = nbl_glsl_fetchVtxPos(gl_VertexIndex, /*gl_DrawID*/ 0);
5253
gl_Position = nbl_glsl_pseudoMul4x4with3x1(CamData.params.MVP, LocalPos);
5354
ViewPos = nbl_glsl_pseudoMul3x4with3x1(CamData.params.MV, LocalPos);
5455
mat3 normalMat = nbl_glsl_SBasicViewParameters_GetNormalMat(CamData.params.NormalMatAndEyePos);
55-
Normal = normalMat*normalize(nbl_glsl_fetchVtxNormal(gl_VertexIndex, gl_DrawID));
56+
Normal = normalMat*normalize(nbl_glsl_fetchVtxNormal(gl_VertexIndex, /*gl_DrawID*/ 0));
5657
#ifndef _NO_UV
57-
UV = nbl_glsl_fetchVtxUV(gl_VertexIndex, gl_DrawID);
58+
UV = nbl_glsl_fetchVtxUV(gl_VertexIndex, /*gl_DrawID*/ 0);
5859
#endif
5960
}
6061
#endif //_NBL_VERT_MAIN_DEFINED_

0 commit comments

Comments
 (0)