mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 00:22:43 +08:00
3d v1.0.0 terrain (#4978)
* 上传地形系统 * 上传地形系统 * 新增地形导出 * 新增Terrain Shader * vmath相关修改 * 修复TerrainSample启动崩溃问题 * 修改规范问题及生命周期问题 * 增加地形类型导出 * 修改Terrain部分序列化问题 * 暴露属性
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user