Skip to content

Chunk Format

Ryandw11 edited this page Jan 16, 2021 · 1 revision

The chunk shader format is used by the chunk pipeline by default. The Chunk Pipeline is used by the ChunkHandler.

Vertex

Layouts

layout (location=0) in vec3 position;
layout (location=1) in vec2 texCoord;
layout (location=2) in vec3 vertexNormal;
layout (location=3) in vec2 overlayCoord;
layout (location=4) in float[1] hasTexture;

Uniforms

uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
uniform mat4 modelLightViewMatrix;
uniform mat4 orthoProjectionMatrix;

Fragment

uniform sampler2D textureAtlas;
uniform Material material;

Plus the Lighting Format

Clone this wiki locally