Of course, to learn webgl, you must first understand the coordinate system~~~ It looks like this.
When will it be used? Such as offset, rotation, drawing variability, etc. There are many places. Take the WeChat applet xr-frame
as 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>
mikuPosition
It is a string with a value such as '-0.15 0.75 0'
, it represents x、y、z
the offset in three directions, huh! Need to understand the coordinate system~