These calculations are primarily done by shaders (which can be defined by texture artists). A shader for glass, for example, considers what elements are rendered guiding the glass. Then only tints that shade to seem https://denislwpe074790.shotblogs.com/3d-animation-an-overview-42710922