build/browser/index.js
/**
     * Helper function to synchronize and optimize facets.
     * @hidden
     */
Helper function to synchronize and optimize facets.
@hidden
Helper function to synchronize and optimize facets . @hidden
function synchFacets(material, drawable) {
        if (material) {
            if (material.hasUniform(GraphicsProgramSymbols.UNIFORM_OPACITY)) {
                if (!isNumber(drawable.opacity)) {
                    drawable.opacity = 1.0;
                }
            }
            else {
                drawable.removeFacet(OPACITY_FACET_NAME);
            }
            if (material.hasUniform(GraphicsProgramSymbols.UNIFORM_POINT_SIZE)) {
                if (!isNumber(drawable.pointSize)) {
                    drawable.pointSize = 2;
                }
            }
            else {
                drawable.removeFacet(POINTSIZE_FACET_NAME);
            }
        }
    }
function synchFacets ( material , drawable ) { if ( material ) { if ( material . hasUniform ( GraphicsProgramSymbols . UNIFORM_OPACITY ) ) { if ( ! isNumber ( drawable . opacity ) ) { drawable . opacity = 1.0 ; } } else { drawable . removeFacet ( OPACITY_FACET_NAME ) ; } if ( material . hasUniform ( GraphicsProgramSymbols . UNIFORM_POINT_SIZE ) ) { if ( ! isNumber ( drawable . pointSize ) ) { drawable . pointSize = 2 ; } } else { drawable . removeFacet ( POINTSIZE_FACET_NAME ) ; } } }
Helper function to synchronize and optimize facets.
Helper function to synchronize and optimize facets .
// Ensure that the opacity property is initialized if the material has a corresponding uniform. // Ensure that the pointSize property is initialized if the material has a corresponding uniform.