Skip to content

Particle Format

Ryandw11 edited this page Jan 16, 2021 · 1 revision

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;
Clone this wiki locally