Exemple #1
0
        static Matrix3 _getShaderMatBase(PictureFlusher.State state, Matrix3 meshMatrix)
        {
            if (state.matrix == meshMatrix)
            {
                return(Matrix3.I());
            }

            if (meshMatrix == null)
            {
                return(state.invMatrix);
            }

            return(Matrix3.concat(state.invMatrix, meshMatrix));
        }
Exemple #2
0
        static uiMatrix3 _getShaderMatBase(PictureFlusher.State state, uiMatrix3?meshMatrix)
        {
            if (uiMatrix3.equals(state.matrix, meshMatrix))
            {
                return(uiMatrix3.I());
            }

            if (meshMatrix == null)
            {
                return(state.invMatrix);
            }

            return(uiMatrix3.concat(state.invMatrix, meshMatrix.Value));
        }