Also rename GPUVertexAttribs to GPUVertAttrLayers, avoids confusion with GPUVertAttr which isn't closely related.
14 lines
243 B
GLSL
14 lines
243 B
GLSL
|
|
uniform mat4 ViewProjectionMatrix;
|
|
|
|
/* ---- Instantiated Attrs ---- */
|
|
in vec3 pos;
|
|
|
|
/* ---- Per instance Attrs ---- */
|
|
in mat4 InstanceModelMatrix;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = ViewProjectionMatrix * InstanceModelMatrix * vec4(pos, 1.0);
|
|
}
|