playcanvas
Version:
Open-source WebGL/WebGPU 3D engine for the web
64 lines (49 loc) • 1.32 kB
JavaScript
// The main code of particle system fragment shader used for rendering
var particle_shaderPS = /* glsl */ `
varying vec3 Normal;
varying mat3 ParticleMat;
uniform vec3 lightCube[6];
varying float vDepth;
uniform sampler2D normalMap;
vec3 normal = Normal;
`;
export { particle_shaderPS as default };