coordinate system in webgl

Of course, to learn webgl, you must first understand the coordinate system~~~ It looks like this.
insert image description here
When will it be used? Such as offset, rotation, drawing variability, etc. There are many places. Take the WeChat applet xr-frameas an example,


<xr-gltf model="miku" position="{
     
     {mikuPosition}}" scale="0.07 0.07 0.07" rotation="0 180 0" anim-autoplay
    id="miku" cube-shape="autoFit:true" bind:touch-shape="handleTouchModel"
></xr-gltf>

mikuPositionIt is a string with a value such as '-0.15 0.75 0', it represents x、y、zthe offset in three directions, huh! Need to understand the coordinate system~

Guess you like

Origin blog.csdn.net/qq_29517595/article/details/129820248