> For the complete documentation index, see [llms.txt](https://kakara.gitbook.io/engine/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kakara.gitbook.io/engine/render-system/extensible-render-pipeline/chunk-shader-format.md).

# Voxel Shader Format

The Voxel Shader format is used by the Voxel Pipeline by default. The Voxel Pipeline is used by the [ChunkHandler](https://ci.kingtux.dev/job/Kakara%20Engine%202/job/master/javadoc/org/kakara/engine/voxels/ChunkHandler.html).

## Vertex

### Layouts

```c
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

```c
uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;
uniform mat4 modelLightViewMatrix;
uniform mat4 orthoProjectionMatrix;
```

## Fragment

```c
uniform sampler2D textureAtlas;
uniform Material material;
uniform float reflectance;
```

Plus the [Lighting Format](/engine/render-system/extensible-render-pipeline/lighting-shader-format.md)<br>
