Appearance
KBE3D / KBCore / materials / TextMaterial
类: TextMaterial
面状: 文字贴图材质 - Primitive使用
继承
属性
DefaultImageId
staticDefaultImageId:string
Gets or sets the default texture uniform value.
继承自
DefaultCubeMapId
staticDefaultCubeMapId:string
Gets or sets the default cube map texture uniform value.
继承自
ColorType
readonlystaticColorType:string
Gets the name of the color material.
继承自
ImageType
readonlystaticImageType:string
Gets the name of the image material.
继承自
DiffuseMapType
readonlystaticDiffuseMapType:string
Gets the name of the diffuce map material.
继承自
AlphaMapType
readonlystaticAlphaMapType:string
Gets the name of the alpha map material.
继承自
SpecularMapType
readonlystaticSpecularMapType:string
Gets the name of the specular map material.
继承自
EmissionMapType
readonlystaticEmissionMapType:string
Gets the name of the emmision map material.
继承自
BumpMapType
readonlystaticBumpMapType:string
Gets the name of the bump map material.
继承自
NormalMapType
readonlystaticNormalMapType:string
Gets the name of the normal map material.
继承自
GridType
readonlystaticGridType:string
Gets the name of the grid material.
继承自
StripeType
readonlystaticStripeType:string
Gets the name of the stripe material.
继承自
CheckerboardType
readonlystaticCheckerboardType:string
Gets the name of the checkerboard material.
继承自
DotType
readonlystaticDotType:string
Gets the name of the dot material.
继承自
WaterType
readonlystaticWaterType:string
Gets the name of the water material.
继承自
RimLightingType
readonlystaticRimLightingType:string
Gets the name of the rim lighting material.
继承自
FadeType
readonlystaticFadeType:string
Gets the name of the fade material.
继承自
PolylineArrowType
readonlystaticPolylineArrowType:string
Gets the name of the polyline arrow material.
继承自
PolylineDashType
readonlystaticPolylineDashType:string
Gets the name of the polyline glow material.
继承自
PolylineGlowType
readonlystaticPolylineGlowType:string
Gets the name of the polyline glow material.
继承自
PolylineOutlineType
readonlystaticPolylineOutlineType:string
Gets the name of the polyline outline material.
继承自
ElevationContourType
readonlystaticElevationContourType:string
Gets the name of the elevation contour material.
继承自
ElevationRampType
readonlystaticElevationRampType:string
Gets the name of the elevation contour material.
继承自
SlopeRampMaterialType
readonlystaticSlopeRampMaterialType:string
Gets the name of the slope ramp material.
继承自
Material.SlopeRampMaterialType
AspectRampMaterialType
readonlystaticAspectRampMaterialType:string
Gets the name of the aspect ramp material.
继承自
Material.AspectRampMaterialType
ElevationBandType
readonlystaticElevationBandType:string
Gets the name of the elevation band material.
继承自
WaterMaskType
readonlystaticWaterMaskType:string
Gets the name of the water mask material.
继承自
type
type:
string
The material type. Can be an existing type or a new type. If no type is specified in fabric, type is a GUID.
继承自
shaderSource
shaderSource:
string
The glsl shader source for this material.
继承自
materials
materials:
any
Maps sub-material names to Material objects.
继承自
uniforms
uniforms:
any
Maps uniform names to their values.
继承自
translucent
translucent:
boolean| (...params:any[]) =>any
When <code>true</code> or a function that returns <code>true</code>, the geometry is expected to appear translucent.
继承自
方法
fromType()
staticfromType(type:string,uniforms?:any):Material
Creates a new material using an existing material type. <br /><br /> Shorthand for: new Material({fabric : {type : type}});
参数
type
string
The base material type.
uniforms?
any
Overrides for the default uniforms.
返回
New material object.
示例
ts
const material = Cesium.Material.fromType('Color', {
color: new Cesium.Color(1.0, 0.0, 0.0, 1.0)
});继承自
fromTypeAsync()
staticfromTypeAsync(type:string,uniforms?:any):Promise<Material>
Creates a new material using an existing material type and returns a promise that resolves when all of the material's resources have been loaded.
参数
type
string
The base material type.
uniforms?
any
Overrides for the default uniforms.
返回
Promise<Material>
A promise that resolves to a new material object when all resources are loaded.
示例
ts
const material = await Cesium.Material.fromTypeAsync('Image', {
image: '../Images/Cesium_Logo_overlay.png'
});继承自
isTranslucent()
isTranslucent():
boolean
Gets whether or not this material is translucent.
返回
boolean
true if this material is translucent, false otherwise.
继承自
isDestroyed()
isDestroyed():
boolean
Returns true if this object was destroyed; otherwise, false. <br /><br /> If this object was destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception.
返回
boolean
True if this object was destroyed; otherwise, false.
继承自
destroy()
destroy():
void
Destroys the WebGL resources held by this object. Destroying an object allows for deterministic release of WebGL resources, instead of relying on the garbage collector to destroy this object. <br /><br /> Once an object is destroyed, it should not be used; calling any function other than <code>isDestroyed</code> will result in a DeveloperError exception. Therefore, assign the return value (<code>undefined</code>) to the object as done in the example.
返回
void
示例
ts
material = material && material.destroy();继承自
构造函数
构造函数
new TextMaterial(
options?:TextMaterialOptions):TextMaterial
参数
options?
TextMaterialOptions = {}
返回
TextMaterial
