patriciogonzalezvivo/PixelSpiritDeck

Don't get one thing...

Opened this issue · 0 comments

Sorry to bother you, is not an issue but I don't understand how this code works e what is for:

st = (st-.5)*1.1912+.5;
if (u_resolution.y > u_resolution.x ) {
    st.y *= u_resolution.y/u_resolution.x;
    st.y -= (u_resolution.y*.5-u_resolution.x*.5)/u_resolution.x;
} else {
    st.x *= u_resolution.x/u_resolution.y;
    st.x -= (u_resolution.x*.5-u_resolution.y*.5)/u_resolution.y;
}

expecially I don't get this one st = (st-.5)*1.1912+.5
Thanks
Paolo