3d v1.0.0 terrain (#4978)

* 上传地形系统

* 上传地形系统

* 新增地形导出

* 新增Terrain Shader

* vmath相关修改

* 修复TerrainSample启动崩溃问题

* 修改规范问题及生命周期问题

* 增加地形类型导出

* 修改Terrain部分序列化问题

* 暴露属性
This commit is contained in:
Myway
2019-07-26 10:03:45 +08:00
committed by Weiliang Wang
parent 8d333c63c1
commit 6d2671b6f1
+8
View File
@@ -519,10 +519,15 @@ export class TerrainBlock {
@executeInEditMode
export class Terrain extends Component {
@property({
type: TerrainInfo,
visible: false,
})
protected _info: TerrainInfo = new TerrainInfo();
@property({
type: TerrainLayer,
visible: false,
})
protected _layers: Array<TerrainLayer|null> = [];
@property({
@@ -530,6 +535,9 @@ export class Terrain extends Component {
})
protected _heights: number[] = [];
@property({
visible: false,
})
protected _weights: Uint8Array = new Uint8Array();
protected _normals: number[] = [];