Add a change in define
- New variables in shader
- WebGLProgram prefixVertex prefixFragment variable
- I’m going to put the #define in there
- For example: the parameters useUserColor? ‘#define USE_USER_COLOR’ : ”,
- WebGLPrograms function parameterNames variable
- Parameters [parameterNames[I]] parameterProgramCacheKey
- For example :parameterNames = [‘useUserColor’]
- GetParameters function Specifies the parameters variable
- Compare the parameters with getProgramCacheKey to determine whether to update them
- Parameters = {useUserColor: material. UseUserColor,}
- WebGLProgram prefixVertex prefixFragment variable
- New property in material
- The MeshPhysicalMaterial constructor
- For example :this.useUserColor = true;
- MeshPhysicalMaterial copy function
- this.useUserColor = source.useUserColor;
- The MeshPhysicalMaterial constructor