danini-the-panini/mittsu-opengl

View on GitHub
lib/mittsu/opengl/shader/chunks/specularmap_fragment.glsl

Summary

Maintainability
Test Coverage
float specularStrength;

#ifdef USE_SPECULARMAP

    vec4 texelSpecular = texture( specularMap, vUv );
    specularStrength = texelSpecular.r;

#else

    specularStrength = 1.0;

#endif