Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/excaliburjs/Excalibur. 🎮 Your friendly TypeScript 2D game engine for the web 🗡️ excaliburjs.com
excalibur excaliburjs game-development game-engine game-framework gamedev games html5-canvas typescript
Something went wrong. Try again.
123456789101112131415161718192021#version 300 esin vec2 a_position;in vec4 a_color;in float a_lengthSoFar;
out lowp vec4 v_color;out float v_lengthSoFar;
uniform mat4 u_matrix;
void main() { // Set the vertex position using the ortho transform matrix gl_Position = u_matrix * vec4(a_position, 0.0, 1.0);
// Passthrough the color v_color = a_color;
// Passthrough the line length so far v_lengthSoFar = a_lengthSoFar;}