Voxel Shader Format
The Voxel Shader format is used by the Voxel Pipeline by default. The Voxel 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;
uniform float reflectance;
Plus the Lighting Format
Last updated
Was this helpful?