These calculations are primarily executed by shaders (that are described by texture artists). A shader for glass, such as, considers what features are rendered powering the glass. Then only tints that color to look like https://orlandomapi069667.wikimeglio.com/9203175/getting_my_3d_animation_to_work