realms 4.5.5

A powerful and lightweight graphics library for making Rust games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#version 330 core // specify the version of GLSL we want to use

layout (location = 0) in vec2 aPos; // take in 2D coordinates for each vertex

void main() {
    // gl_Position is provided by opengl. Whatever we set it to will be the
    // *normal* coordinates of the vertex.
    // Here, we use the provided x and y position, but keep the last two
    // constant as we're currently only working in 2D.
    gl_Position = vec4(aPos.x, aPos.y, 0.0, 1.0); 
}