📓
engine
  • Kakara Engine
  • Debugging
  • Getting Started
    • Getting the Engine
    • A New Game
    • Game Items
    • Components
    • Textures
    • Model Loading
    • The Camera
    • Player Input
      • Practical use of the Input
    • Lighting
    • User Interface
  • Scene System
    • Scene System
  • Render System
    • Extensible Render Pipeline
      • Standard Shader Format
      • Voxel Shader Format
      • Particle Shader Format
      • Lighting Shader Format
      • Custom Pipelines
  • Java Documentation
Powered by GitBook
On this page
  • Vertex
  • Layouts
  • Uniforms
  • Fragment

Was this helpful?

  1. Render System
  2. Extensible Render Pipeline

Voxel Shader Format

PreviousStandard Shader FormatNextParticle Shader Format

Last updated 4 years ago

Was this helpful?

The Voxel Shader format is used by the Voxel Pipeline by default. The Voxel Pipeline is used by the .

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

ChunkHandler
Lighting Format