playcanvas
Version:
PlayCanvas WebGL game engine
111 lines (85 loc) • 2.29 kB
JavaScript
// The main code of particle system vertex shader
var particle_shaderVS = /* wgsl */ `
uniform animTexTilesParams: vec2f;
uniform animTexParams: vec4f;
uniform animTexIndexParams: vec2f;
varying ParticleMat0: vec3f;
varying ParticleMat1: vec3f;
varying ParticleMat2: vec3f;
varying Normal: vec3f;
varying vDepth: f32;
// wrap is not used on CPU, it was commented out. TODO: investigate why
return output;
}
`;
export { particle_shaderVS as default };