新增一個體素實體,僅在 TerrainView.TerrainViewOptions.requestWebGL2 | WebGL2 有效
參數。
體素實體。
const textureSize = { width: 10, height: 10, depth: 10 };
const frame = { data: [[120, 23, 100, 10], [120, 23, 100, 10]] }
ov.Voxel.addVoxelEntity({
data: new ov.VoxelData(textureSize, frame),
colorSet: ["#2b79ba", "#abdda4", "#ffffbf", "#fdae61", "#d7191c"],
colorPos: [0.0, 0.25, 0.50, 0.75, 1.0]
});
計算資料需要的材質大小。
資料。
每多少公尺為一像素。
材質尺寸。
取得全部體素實體陣列
取得整體透明度
設定整體透明度
體素模組,僅在 TerrainView.TerrainViewOptions.requestWebGL2 | WebGL2 有效。