three-d 0.7.2

A renderer which compiles to both desktop (OpenGL) and web (WebAssembly + WebGL).
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
uniform samplerCube texture0;

layout (std140) uniform Camera
{
    mat4 viewProjection;
    mat4 view;
    mat4 projection;
    vec3 position;
    float padding;
} camera;

in vec3 coords;

layout (location = 0) out vec4 color;

void main() {
    color = vec4(texture(texture0, coords).rgb, 1.0);
}