specularmap_fragment.glsl.js 200 B

1234567891011121314
  1. export default `
  2. float specularStrength;
  3. #ifdef USE_SPECULARMAP
  4. vec4 texelSpecular = texture2D( specularMap, vUv );
  5. specularStrength = texelSpecular.r;
  6. #else
  7. specularStrength = 1.0;
  8. #endif
  9. `;