| Package | laya.d3.core.material |
| Class | public class ExtendTerrainMaterial |
| Inheritance | ExtendTerrainMaterial BaseMaterial laya.resource.Resource |
| Property | Defined By | ||
|---|---|---|---|
| albedo : Vector4
获取反射率颜色。
| ExtendTerrainMaterial | ||
![]() | alphaTest : Boolean
获取是否透明裁剪。
| BaseMaterial | |
![]() | alphaTestValue : Number
获取透明测试模式裁剪值。
| BaseMaterial | |
| ambientColor : Vector3
获取环境光颜色。
| ExtendTerrainMaterial | ||
![]() | blend : int 透明混合。 | BaseMaterial | |
![]() | blendConstColor : Vector4 混合常量颜色。 | BaseMaterial | |
![]() | blendEquation : int 混合方程。 | BaseMaterial | |
![]() | blendEquationAlpha : int Alpha混合方程。 | BaseMaterial | |
![]() | blendEquationRGB : int RGB混合方程。 | BaseMaterial | |
![]() | cull : int 渲染剔除。 | BaseMaterial | |
![]() | depthFunc : int 深度测试函数。 | BaseMaterial | |
![]() | depthTest : Boolean 是否深度测试。 | BaseMaterial | |
![]() | depthWrite : Boolean 是否深度写入。 | BaseMaterial | |
| diffuseColor : Vector3
获取漫反射颜色。
| ExtendTerrainMaterial | ||
| diffuseScaleOffset1 : Vector4 [write-only] | ExtendTerrainMaterial | ||
| diffuseScaleOffset2 : Vector4 [write-only] | ExtendTerrainMaterial | ||
| diffuseScaleOffset3 : Vector4 [write-only] | ExtendTerrainMaterial | ||
| diffuseScaleOffset4 : Vector4 [write-only] | ExtendTerrainMaterial | ||
| diffuseScaleOffset5 : Vector4 [write-only] | ExtendTerrainMaterial | ||
| diffuseTexture1 : BaseTexture [write-only]
设置第一层贴图。
| ExtendTerrainMaterial | ||
| diffuseTexture2 : BaseTexture
获取第二层贴图。
| ExtendTerrainMaterial | ||
| diffuseTexture3 : BaseTexture
获取第三层贴图。
| ExtendTerrainMaterial | ||
| diffuseTexture4 : BaseTexture
获取第四层贴图。
| ExtendTerrainMaterial | ||
| diffuseTexture5 : BaseTexture
获取第五层贴图。
| ExtendTerrainMaterial | ||
![]() | dstBlend : int 目标混合参数,在blend为BLEND_ENABLE_ALL时生效。 | BaseMaterial | |
![]() | dstBlendAlpha : int Alpha目标混合参数,在blend为BLEND_ENABLE_SEPERATE时生效。 | BaseMaterial | |
![]() | dstBlendRGB : int RGB目标混合参数,在blend为BLEND_ENABLE_SEPERATE时生效。 | BaseMaterial | |
| renderMode : int [write-only]
设置渲染模式。
| ExtendTerrainMaterial | ||
![]() | renderQueue : int 所属渲染队列. | BaseMaterial | |
| SHADERDEFINE_DETAIL_NUM1 : int [static] 地形细节宏定义。 | ExtendTerrainMaterial | ||
| SHADERDEFINE_DETAIL_NUM2 : int [static] | ExtendTerrainMaterial | ||
| SHADERDEFINE_DETAIL_NUM3 : int [static] | ExtendTerrainMaterial | ||
| SHADERDEFINE_DETAIL_NUM4 : int [static] | ExtendTerrainMaterial | ||
| SHADERDEFINE_DETAIL_NUM5 : int [static] | ExtendTerrainMaterial | ||
| specularColor : Vector4
获取高光颜色。
| ExtendTerrainMaterial | ||
| splatAlphaTexture : BaseTexture
获取splatAlpha贴图。
| ExtendTerrainMaterial | ||
![]() | srcBlend : int 源混合参数,在blend为BLEND_ENABLE_ALL时生效。 | BaseMaterial | |
![]() | srcBlendAlpha : int Alpha源混合参数,在blend为BLEND_ENABLE_SEPERATE时生效。 | BaseMaterial | |
![]() | srcBlendRGB : int RGB源混合参数,在blend为BLEND_ENABLE_SEPERATE时生效。 | BaseMaterial | |
| Method | Defined By | ||
|---|---|---|---|
| ExtendTerrainMaterial | |||
![]() | _setRenderStateBlendDepth():void
设置渲染相关状态。
| BaseMaterial | |
![]() | _setRenderStateFrontFace(isTarget:Boolean, transform:Transform3D):void
设置渲染相关状态。
| BaseMaterial | |
![]() | _upload():void
上传材质。
| BaseMaterial | |
![]() | clone():*
克隆。
| BaseMaterial | |
![]() | cloneTo(destObject:*):void
克隆。
| BaseMaterial | |
disableLight():void
设置禁受光照影响。
| ExtendTerrainMaterial | ||
![]() | onAsynLoaded(url:String, data:*, params:Array):void [override]
private
| BaseMaterial | |
![]() | setShaderName(name:String):void
设置使用Shader名字。
| BaseMaterial | |
| Constant | Defined By | ||
|---|---|---|---|
![]() | BLEND_DISABLE : int = 0 [static] 混合枚举_禁用。 | BaseMaterial | |
![]() | BLEND_ENABLE_ALL : int = 1 [static] 混合枚举_启用_RGB和Alpha统一混合。 | BaseMaterial | |
![]() | BLEND_ENABLE_SEPERATE : int = 2 [static] 混合枚举_启用_RGB和Alpha单独混合。 | BaseMaterial | |
![]() | BLENDEQUATION_ADD : int = 0 [static] 混合方程枚举_加法,例:source + destination | BaseMaterial | |
![]() | BLENDEQUATION_REVERSE_SUBTRACT : int = 2 [static] 混合方程枚举_反序减法,例:destination - source | BaseMaterial | |
![]() | BLENDEQUATION_SUBTRACT : int = 1 [static] 混合方程枚举_减法,例:source - destination | BaseMaterial | |
![]() | BLENDPARAM_CONSTANT_ALPHA : int = 0x8003 [static] 混合参数枚举_常量阿尔法,例:RGB(Ac, Ac, Ac),Alpha(Ac)。 | BaseMaterial | |
![]() | BLENDPARAM_CONSTANT_COLOR : int = 0x8001 [static] 混合参数枚举_常量颜色,例:RGB(Rc, Gc, Bc),Alpha(Ac)。 | BaseMaterial | |
![]() | BLENDPARAM_DST_ALPHA : int = 0x0304 [static] 混合参数枚举_目标阿尔法,例:RGB(Ad, Ad, Ad),Alpha(Ad)。 | BaseMaterial | |
![]() | BLENDPARAM_DST_COLOR : int = 0x0306 [static] 混合参数枚举_目标颜色,例:RGB(Rd, Gd, Bd),Alpha(Ad)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE : int = 1 [static] 混合参数枚举_一,例:RGB(1,1,1),Alpha:(1)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_CONSTANT_ALPHA : int = 0x8004 [static] 混合参数枚举_一减常量阿尔法,例:RGB(1-Ac, 1-Ac, 1-Ac),Alpha(1-Ac)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_CONSTANT_COLOR : int = 0x8002 [static] 混合参数枚举_一减常量颜色,例:RGB(1-Rc, 1-Gc, 1-Bc),Alpha(1-Ac)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_DST_ALPHA : int = 0x0305 [static] 混合参数枚举_一减目标阿尔法,例:RGB(1-Ad, 1-Ad, 1-Ad),Alpha(Ad)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_DST_COLOR : int = 0x0307 [static] 混合参数枚举_一减目标颜色,例:RGB(1-Rd, 1-Gd, 1-Bd),Alpha(1-Ad)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_SRC_ALPHA : int = 0x0303 [static] 混合参数枚举_一减源阿尔法,例:RGB(1-As, 1-As, 1-As),Alpha(1-As)。 | BaseMaterial | |
![]() | BLENDPARAM_ONE_MINUS_SRC_COLOR : int = 0x0301 [static] 混合参数枚举_一减源颜色,例:RGB(1-Rs, 1-Gs, 1-Bs),Alpha(1-As)。 | BaseMaterial | |
![]() | BLENDPARAM_SRC_ALPHA : int = 0x0302 [static] 混合参数枚举_源透明,例:RGB(As, As, As),Alpha(1-As)。 | BaseMaterial | |
![]() | BLENDPARAM_SRC_ALPHA_SATURATE : int = 0x0308 [static] 混合参数枚举_阿尔法饱和,例:RGB(min(As, 1 - Ad), min(As, 1 - Ad), min(As, 1 - Ad)),Alpha(1)。 | BaseMaterial | |
![]() | BLENDPARAM_SRC_COLOR : int = 0x0300 [static] 混合参数枚举_源颜色,例:RGB(Rs, Gs, Bs),Alpha(As)。 | BaseMaterial | |
![]() | BLENDPARAM_ZERO : int = 0 [static] 混合参数枚举_零,例:RGB(0,0,0),Alpha:(1)。 | BaseMaterial | |
![]() | CULL_BACK : int = 2 [static] 剔除枚举_剔除背面。 | BaseMaterial | |
![]() | CULL_FRONT : int = 1 [static] 剔除枚举_剔除正面。 | BaseMaterial | |
![]() | CULL_NONE : int = 0 [static] 剔除枚举_不剔除。 | BaseMaterial | |
![]() | DEPTHFUNC_ALWAYS : int = 0x0207 [static] 深度测试函数枚举_总是通过。 | BaseMaterial | |
![]() | DEPTHFUNC_EQUAL : int = 0x0202 [static] 深度测试函数枚举_等于时通过。 | BaseMaterial | |
![]() | DEPTHFUNC_GEQUAL : int = 0x0206 [static] 深度测试函数枚举_大于等于时通过。 | BaseMaterial | |
![]() | DEPTHFUNC_GREATER : int = 0x0204 [static] 深度测试函数枚举_大于时通过。 | BaseMaterial | |
![]() | DEPTHFUNC_LEQUAL : int = 0x0203 [static] 深度测试函数枚举_小于等于时通过。 | BaseMaterial | |
![]() | DEPTHFUNC_LESS : int = 0x0201 [static] 深度测试函数枚举_小于时通过。 | BaseMaterial | |
![]() | DEPTHFUNC_NEVER : int = 0x0200 [static] 深度测试函数枚举_从不通过。 | BaseMaterial | |
![]() | DEPTHFUNC_NOTEQUAL : int = 0x0205 [static] 深度测试函数枚举_不等于时通过。 | BaseMaterial | |
| DIFFUSESCALEOFFSET1 : int = 6 [static] | ExtendTerrainMaterial | ||
| DIFFUSESCALEOFFSET2 : int = 7 [static] | ExtendTerrainMaterial | ||
| DIFFUSESCALEOFFSET3 : int = 8 [static] | ExtendTerrainMaterial | ||
| DIFFUSESCALEOFFSET4 : int = 9 [static] | ExtendTerrainMaterial | ||
| DIFFUSESCALEOFFSET5 : int = 10 [static] | ExtendTerrainMaterial | ||
| DIFFUSETEXTURE1 : int = 1 [static] | ExtendTerrainMaterial | ||
| DIFFUSETEXTURE2 : int = 2 [static] | ExtendTerrainMaterial | ||
| DIFFUSETEXTURE3 : int = 3 [static] | ExtendTerrainMaterial | ||
| DIFFUSETEXTURE4 : int = 4 [static] | ExtendTerrainMaterial | ||
| DIFFUSETEXTURE5 : int = 5 [static] | ExtendTerrainMaterial | ||
| MATERIALALBEDO : int = 14 [static] | ExtendTerrainMaterial | ||
| MATERIALAMBIENT : int = 11 [static] | ExtendTerrainMaterial | ||
| MATERIALDIFFUSE : int = 12 [static] | ExtendTerrainMaterial | ||
| MATERIALSPECULAR : int = 13 [static] | ExtendTerrainMaterial | ||
| RENDERMODE_OPAQUE : int = 1 [static] 渲染状态_不透明。 | ExtendTerrainMaterial | ||
| RENDERMODE_TRANSPARENT : int = 2 [static] 渲染状态_透明混合。 | ExtendTerrainMaterial | ||
| SPLATALPHATEXTURE : int = 0 [static] 渲染状态_透明混合。 | ExtendTerrainMaterial | ||
| albedo | property |
albedo:Vector4获取反射率颜色。
public function get albedo():Vector4 public function set albedo(value:Vector4):void| ambientColor | property |
ambientColor:Vector3获取环境光颜色。
public function get ambientColor():Vector3 public function set ambientColor(value:Vector3):void| diffuseColor | property |
diffuseColor:Vector3获取漫反射颜色。
public function get diffuseColor():Vector3 public function set diffuseColor(value:Vector3):void| diffuseScaleOffset1 | property |
diffuseScaleOffset1:Vector4 [write-only] public function set diffuseScaleOffset1(value:Vector4):void| diffuseScaleOffset2 | property |
diffuseScaleOffset2:Vector4 [write-only] public function set diffuseScaleOffset2(value:Vector4):void| diffuseScaleOffset3 | property |
diffuseScaleOffset3:Vector4 [write-only] public function set diffuseScaleOffset3(value:Vector4):void| diffuseScaleOffset4 | property |
diffuseScaleOffset4:Vector4 [write-only] public function set diffuseScaleOffset4(value:Vector4):void| diffuseScaleOffset5 | property |
diffuseScaleOffset5:Vector4 [write-only] public function set diffuseScaleOffset5(value:Vector4):void| diffuseTexture1 | property |
diffuseTexture1:BaseTexture [write-only] 设置第一层贴图。
public function set diffuseTexture1(value:BaseTexture):void| diffuseTexture2 | property |
diffuseTexture2:BaseTexture获取第二层贴图。
public function get diffuseTexture2():BaseTexture public function set diffuseTexture2(value:BaseTexture):void| diffuseTexture3 | property |
diffuseTexture3:BaseTexture获取第三层贴图。
public function get diffuseTexture3():BaseTexture public function set diffuseTexture3(value:BaseTexture):void| diffuseTexture4 | property |
diffuseTexture4:BaseTexture获取第四层贴图。
public function get diffuseTexture4():BaseTexture public function set diffuseTexture4(value:BaseTexture):void| diffuseTexture5 | property |
diffuseTexture5:BaseTexture获取第五层贴图。
public function get diffuseTexture5():BaseTexture public function set diffuseTexture5(value:BaseTexture):void| renderMode | property |
renderMode:int [write-only] 设置渲染模式。
public function set renderMode(value:int):void| SHADERDEFINE_DETAIL_NUM1 | property |
public static var SHADERDEFINE_DETAIL_NUM1:int地形细节宏定义。
| SHADERDEFINE_DETAIL_NUM2 | property |
public static var SHADERDEFINE_DETAIL_NUM2:int| SHADERDEFINE_DETAIL_NUM3 | property |
public static var SHADERDEFINE_DETAIL_NUM3:int| SHADERDEFINE_DETAIL_NUM4 | property |
public static var SHADERDEFINE_DETAIL_NUM4:int| SHADERDEFINE_DETAIL_NUM5 | property |
public static var SHADERDEFINE_DETAIL_NUM5:int| specularColor | property |
specularColor:Vector4获取高光颜色。
public function get specularColor():Vector4 public function set specularColor(value:Vector4):void| splatAlphaTexture | property |
splatAlphaTexture:BaseTexture获取splatAlpha贴图。
public function get splatAlphaTexture():BaseTexture public function set splatAlphaTexture(value:BaseTexture):void| ExtendTerrainMaterial | () | Constructor |
public function ExtendTerrainMaterial()| disableLight | () | method |
public function disableLight():void设置禁受光照影响。
| DIFFUSESCALEOFFSET1 | Constant |
public static const DIFFUSESCALEOFFSET1:int = 6| DIFFUSESCALEOFFSET2 | Constant |
public static const DIFFUSESCALEOFFSET2:int = 7| DIFFUSESCALEOFFSET3 | Constant |
public static const DIFFUSESCALEOFFSET3:int = 8| DIFFUSESCALEOFFSET4 | Constant |
public static const DIFFUSESCALEOFFSET4:int = 9| DIFFUSESCALEOFFSET5 | Constant |
public static const DIFFUSESCALEOFFSET5:int = 10| DIFFUSETEXTURE1 | Constant |
public static const DIFFUSETEXTURE1:int = 1| DIFFUSETEXTURE2 | Constant |
public static const DIFFUSETEXTURE2:int = 2| DIFFUSETEXTURE3 | Constant |
public static const DIFFUSETEXTURE3:int = 3| DIFFUSETEXTURE4 | Constant |
public static const DIFFUSETEXTURE4:int = 4| DIFFUSETEXTURE5 | Constant |
public static const DIFFUSETEXTURE5:int = 5| MATERIALALBEDO | Constant |
public static const MATERIALALBEDO:int = 14| MATERIALAMBIENT | Constant |
public static const MATERIALAMBIENT:int = 11| MATERIALDIFFUSE | Constant |
public static const MATERIALDIFFUSE:int = 12| MATERIALSPECULAR | Constant |
public static const MATERIALSPECULAR:int = 13| RENDERMODE_OPAQUE | Constant |
public static const RENDERMODE_OPAQUE:int = 1渲染状态_不透明。
| RENDERMODE_TRANSPARENT | Constant |
public static const RENDERMODE_TRANSPARENT:int = 2渲染状态_透明混合。
| SPLATALPHATEXTURE | Constant |
public static const SPLATALPHATEXTURE:int = 0渲染状态_透明混合。