fyrox-impl 0.36.2

Feature-rich, easy-to-use, 2D/3D game engine with a scene editor. Like Godot, but in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
layout (location = 0) in vec3 vertexPosition;

uniform sampler2D matrices;

layout (std140) uniform Uniforms {
    mat4 viewProjection;
    int tileSize;
    float frameBufferHeight;
};

flat out uint objectIndex;

void main()
{
    objectIndex = uint(gl_InstanceID);
    gl_Position = (viewProjection * S_FetchMatrix(matrices, gl_InstanceID)) * vec4(vertexPosition, 1.0);
}