meiciuc Posted August 9, 2020 Share Posted August 9, 2020 (edited) Good day! Please, give me an idea, how to achieve an effect like "inverted" NineSlicePlane - (center non scaled). Thanks. Edited August 9, 2020 by meiciuc Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 9, 2020 Share Posted August 9, 2020 Copy source of NineSlicePlane, implement different kind of scaling Quote Link to comment Share on other sites More sharing options...
meiciuc Posted August 9, 2020 Author Share Posted August 9, 2020 Thanks, I even know about inheritance! But I do not understand a work with vertices. Quote public updateHorizontalVertices(): void { const vertices = this.vertices; const scale = this._getMinScale(); vertices[9] = vertices[11] = vertices[13] = vertices[15] = this._topHeight * scale; vertices[17] = vertices[19] = vertices[21] = vertices[23] = this._height - (this._bottomHeight * scale); vertices[25] = vertices[27] = vertices[29] = vertices[31] = this._height; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.