PilotGaea 3D O'view
    正在準備搜尋索引...

    介面 AddCustomGlTFProperty

    新增自畫GLTF參數。

    interface AddCustomGlTFProperty {
        position: GeoPoint;
        src: string;
        boundingSphereRadius?: number;
        earthCentered?: boolean;
        minRange?: number;
        rotate?: number[];
        scale?: number;
        textureMaxHeight?: number;
        textureMaxWidth?: number;
        useLight?: boolean;
    }

    層級 (查看層級一覽)

    索引

    屬性

    position: GeoPoint

    位置。

    src: string

    來源網址或GLB字串。

    boundingSphereRadius?: number

    包圍球半徑,不給核心會自動計算。

    0.0
    
    earthCentered?: boolean

    是否為地心。

    true
    
    minRange?: number

    在畫面上出現的最小像素,小於此值就不畫。

    20
    
    rotate?: number[]

    旋轉,依序代表x y z w的旋轉參數。

    [0, 1, 0, 0]
    
    scale?: number

    縮放。

    1
    
    textureMaxHeight?: number

    限制貼圖最大高度,須為2的冪次。

    4096
    
    textureMaxWidth?: number

    限制貼圖最大寬度,須為2的冪次。

    4096
    
    useLight?: boolean

    開啟光照。

    true