I've been attempting to locate the exact location where the fragment and vertex shaders are being assigned after creating a Three.js material, but haven't had much success. Using the ParticleSystemMaterial, I have
material = new THREE.ParticleSystemMaterial();
console.log(material);
When inspecting the developer console in Firefox, I can see that fragmentShader
and vertexShader
are both set with default values:
However, I am curious as to where these values are originating from. While examining the source code in ParticleSystemMaterial.js and Material.js, I have not found any explicit statements indicating where these shaders are being assigned. My assumption is that they are being retrieved at some point from ShaderLib.js, but there is no evidence of this in either of the source codes.
Does anyone have any insights on this?