realms 3.5.5

A powerful and lightweight graphics library for making Rust games
Documentation
1
2
3
4
5
6
7
8
9
10
11
#version 330 core

// take in the color from the vertex shader:
in vec3 color;

out vec4 FragColor; // used to output the color of the triangle

void main() {
    // set the color to the color passed in, with alpha 1.0 (fully opaque)
    FragColor = vec4(color, 1.0);
}