A question about file naming

I’ve been learning about the shader in threejs recently. In the ShaderChunk folder, some files have a _pars_ tag in their file names. I want to know why to use _pars_ for marking and the full name of the tag.
image

  • fog_fragment is for the calculations inside main(){}
  • fog_pars_fragment are the parameters that need to be declared at the beginning of the shader, like uniforms, varyings, #define statements, etc.
3 Likes