X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=scene.h;h=fb758eb5a3e47edb0a6396db06886d1c1a99628e;hb=0ca7f5ca2560908de1a03db112df67e52b476107;hp=fa1ce4dbc8bc782a23953c22889aa20d7c27d384;hpb=409edea2cf6271956137918e4e0b4f1c2addf620;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/scene.h b/scene.h index fa1ce4d..fb758eb 100644 --- a/scene.h +++ b/scene.h @@ -17,7 +17,7 @@ struct scene_vert v3f co; /* 3*32 */ v2f uv; /* 2*32 */ i8 norm[4]; /* 4*8 */ - u16 lights[4]; /* 4*16 */ + u16 unused[4]; }; #pragma pack(pop) @@ -259,10 +259,12 @@ VG_STATIC void scene_upload( scene *pscene, glmesh *mesh ) stride, (void *)offsetof(scene_vert, uv) ); glEnableVertexAttribArray( 2 ); +#if 0 /* 3: light cluster */ glVertexAttribIPointer( 3, 4, GL_UNSIGNED_SHORT, stride, (void *)offsetof(scene_vert, lights) ); glEnableVertexAttribArray( 3 ); +#endif VG_CHECK_GL_ERR();