Esempio n. 1
0
        public uiMatrix3 getGradientMat(uiMatrix3 mat)
        {
            if (this.matrix != null)
            {
                mat.postConcat(this.matrix.Value);
            }

            mat.postConcat(this.ptsToUnit);
            return(mat);
        }
Esempio n. 2
0
        void _concat(uiMatrix3 matrix)
        {
            var state = this._currentLayer.currentState;

            matrix = new uiMatrix3(matrix);
            matrix.postConcat(state.matrix.Value);
            state.matrix = matrix;
        }
Esempio n. 3
0
        public uiMatrix3 getShaderMat(uiMatrix3 mat)
        {
            if (this.matrix != null)
            {
                mat.postConcat(this.matrix.Value);
            }

            mat.postScale(1f / this.image.width, 1f / this.image.height);
            return(mat);
        }