function changeMaterial(setMaterial)
{
    const id = document.querySelector("input[name=materialRBGroup]:checked");
    const textureOn = document.querySelector("#textureCheckbox").checked;

    if (textureOn)
        setMaterial(id.value + "-textured");
    else
        setMaterial(id.value); 
}
/**
 * Adds the event to the radiobutton group, and loads the given function
 * * @param {function} setMaterial The function that sets the material of the mesh based on a name from the web page
 */
Adds the event to the radiobutton group, and loads the given function
@param {function} setMaterial The function that sets the material of the mesh based on a name from the web page
Adds the event to the radiobutton group and loads the given function @param { function } setMaterial The function that sets the material of the mesh based on a name from the web page
function changeMaterial(setMaterial)
{
    const id = document.querySelector("input[name=materialRBGroup]:checked");
    const textureOn = document.querySelector("#textureCheckbox").checked;
    if (textureOn)
        setMaterial(id.value + "-textured");
    else
        setMaterial(id.value); 
}
function changeMaterial ( setMaterial ) { const id = document . querySelector ( "input[name=materialRBGroup]:checked" ) ; const textureOn = document . querySelector ( "#textureCheckbox" ) . checked ; if ( textureOn ) setMaterial ( id . value + "-textured" ) ; else setMaterial ( id . value ) ; }
Adds the event to the radiobutton group, and loads the given function
 * @param {function} setMaterial The function that sets the material of the mesh based on a name from the web page
Adds the event to the radiobutton group and loads the given function * @param { function } setMaterial The function that sets the material of the mesh based on a name from the web page