Package | laya.d3.terrain |
Class | public class TerrainRes |
Inheritance | TerrainRes laya.resource.Resource |
TerrainRes
类用于描述地形信息。
Property | Defined By | ||
---|---|---|---|
_alphaMaps : Vector.<String> | TerrainRes | ||
_cameraCoordinateInverse : Boolean | TerrainRes | ||
_chunkInfos : Vector.<ChunkInfo> | TerrainRes | ||
_chunkNumX : int | TerrainRes | ||
_chunkNumZ : int | TerrainRes | ||
_detailTextureInfos : Vector.<DetailTextureInfo> | TerrainRes | ||
_gridSize : Number | TerrainRes | ||
_heightData : TerrainHeightData | TerrainRes | ||
_heightDataBitType : int | TerrainRes | ||
_heightDataUrl : String | TerrainRes | ||
_heightDataValue : Number | TerrainRes | ||
_heightDataX : int | TerrainRes | ||
_heightDataZ : int | TerrainRes | ||
_materialInfo : MaterialInfo | TerrainRes | ||
_normalMaps : Vector.<String> | TerrainRes | ||
_version : Number | TerrainRes |
Method | Defined By | ||
---|---|---|---|
创建一个 TerrainHeightData 实例。
| TerrainRes | ||
load(url:String):TerrainRes [static]
加载地形模板,注意:不缓存。
| TerrainRes | ||
onAsynLoaded(url:String, data:*, params:Array):void [override]
异步回调
| TerrainRes | ||
onLoadTerrainComplete(heightData:TerrainHeightData):void | TerrainRes | ||
parseData(data:*):Boolean | TerrainRes |
_alphaMaps | property |
public var _alphaMaps:Vector.<String>
_cameraCoordinateInverse | property |
public var _cameraCoordinateInverse:Boolean
_chunkInfos | property |
public var _chunkInfos:Vector.<ChunkInfo>
_chunkNumX | property |
public var _chunkNumX:int
_chunkNumZ | property |
public var _chunkNumZ:int
_detailTextureInfos | property |
public var _detailTextureInfos:Vector.<DetailTextureInfo>
_gridSize | property |
public var _gridSize:Number
_heightData | property |
public var _heightData:TerrainHeightData
_heightDataBitType | property |
public var _heightDataBitType:int
_heightDataUrl | property |
public var _heightDataUrl:String
_heightDataValue | property |
public var _heightDataValue:Number
_heightDataX | property |
public var _heightDataX:int
_heightDataZ | property |
public var _heightDataZ:int
_materialInfo | property |
public var _materialInfo:MaterialInfo
_normalMaps | property |
public var _normalMaps:Vector.<String>
_version | property |
public var _version:Number
TerrainRes | () | Constructor |
public function TerrainRes()
创建一个 TerrainHeightData
实例。
load | () | method |
public static function load(url:String):TerrainRes
加载地形模板,注意:不缓存。
Parameters
url:String — 模板地址。
|
TerrainRes |
onAsynLoaded | () | method |
override public function onAsynLoaded(url:String, data:*, params:Array):void
异步回调
Parameters
url:String | |
data:* | |
params:Array |
onLoadTerrainComplete | () | method |
public function onLoadTerrainComplete(heightData:TerrainHeightData):void
Parameters
heightData:TerrainHeightData |
parseData | () | method |
public function parseData(data:*):Boolean
Parameters
data:* |
Boolean |