📓
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

Particle Shader Format

The Particle Format is used by the Particle system.

Vertex

Layouts

layout (location=0) in vec3 position;
layout (location=1) in vec2 texCoord;
layout (location=2) in vec3 vertexNormal;

Uniforms

uniform mat4 modelViewMatrix;
uniform mat4 projectionMatrix;

uniform float texXOffset;
uniform float texYOffset;
uniform int numCols;
uniform int numRows;

Fragment

uniform sampler2D texture_sampler;
PreviousVoxel Shader FormatNextLighting Shader Format

Last updated 4 years ago

Was this helpful?