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;

Last updated