Package | away3d.materials |
Class | public class OcclusionMaterial |
Inheritance | OcclusionMaterial ![]() ![]() ![]() ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() | alpha : Number
The alpha of the surface. | ColorMaterial | |
![]() | alphaBlending : Boolean
Indicate whether or not the material has transparency. | SinglePassMaterialBase | |
![]() | alphaPremultiplied : Boolean
Indicates whether visible textures (or other pixels) used by this material have
already been premultiplied. | MaterialBase | |
![]() | alphaThreshold : Number
The minimum alpha value for which pixels should be drawn. | SinglePassMaterialBase | |
![]() | ambient : Number
The strength of the ambient reflection. | SinglePassMaterialBase | |
![]() | ambientColor : uint
The colour of the ambient reflection. | SinglePassMaterialBase | |
![]() | ambientMethod : BasicAmbientMethod
The method to perform ambient shading. | SinglePassMaterialBase | |
![]() | assetFullPath : Array [read-only] | NamedAssetBase | |
![]() | assetNamespace : String [read-only] | NamedAssetBase | |
![]() | assetType : String [read-only] | MaterialBase | |
![]() | blendMode : String [override] | SinglePassMaterialBase | |
![]() | bothSides : Boolean
Defines whether or not the material should perform backface culling. | MaterialBase | |
![]() | color : uint
The diffuse color of the surface. | ColorMaterial | |
![]() | colorTransform : ColorTransform
The ColorTransform object to transform the colour of the material with. | SinglePassMaterialBase | |
![]() | depthCompareMode : String [override] | SinglePassMaterialBase | |
![]() | diffuseLightSources : uint | SinglePassMaterialBase | |
![]() | diffuseMethod : BasicDiffuseMethod
The method to perform diffuse shading. | SinglePassMaterialBase | |
![]() | enableLightFallOff : Boolean
Whether or not to use fallOff and radius properties for lights. | SinglePassMaterialBase | |
![]() | extra : Object
An object to contain any extra data
| MaterialBase | |
![]() | gloss : Number
The sharpness of the specular highlight. | SinglePassMaterialBase | |
![]() | lightPicker : LightPickerBase [override] | SinglePassMaterialBase | |
![]() | mipmap : Boolean [override]
Indicates whether or not any used textures should use mipmapping. | SinglePassMaterialBase | |
![]() | name : String | NamedAssetBase | |
![]() | normalMap : Texture2DBase
The tangent space normal map to influence the direction of the surface for each texel. | SinglePassMaterialBase | |
![]() | normalMethod : BasicNormalMethod
The method to generate the (tangent-space) normal. | SinglePassMaterialBase | |
![]() | numMethods : int [read-only] | SinglePassMaterialBase | |
occlude : Boolean
Whether or not an object with this material applied hides other objects. | OcclusionMaterial | ||
![]() | originalName : String [read-only]
The original name used for this asset in the resource (e.g. | NamedAssetBase | |
![]() | repeat : Boolean
Indicates whether or not any used textures should be tiled. | MaterialBase | |
![]() | requiresBlending : Boolean [override] [read-only]
Indicates whether or not the material requires alpha blending during rendering. | ColorMaterial | |
![]() | shadowMethod : ShadowMapMethodBase
The method to render shadows cast on this surface. | SinglePassMaterialBase | |
![]() | smooth : Boolean
Indicates whether or not any used textures should use smoothing. | MaterialBase | |
![]() | specular : Number
The overall strength of the specular reflection. | SinglePassMaterialBase | |
![]() | specularColor : uint
The colour of the specular reflection. | SinglePassMaterialBase | |
![]() | specularLightSources : uint | SinglePassMaterialBase | |
![]() | specularMap : Texture2DBase
A specular map that defines the strength of specular reflections for each texel in the red channel, and the gloss factor in the green channel. | SinglePassMaterialBase | |
![]() | specularMethod : BasicSpecularMethod
The method to perform specular shading. | SinglePassMaterialBase | |
![]() | uniqueId : uint [read-only]
The unique id assigned to the material by the MaterialLibrary. | MaterialBase |
Method | Defined By | ||
---|---|---|---|
OcclusionMaterial(occlude:Boolean = true, color:uint = 0xcccccc, alpha:Number = 1)
Creates a new OcclusionMaterial object. | OcclusionMaterial | ||
![]() | addMethod(method:EffectMethodBase):void
Adds a shading method to the end of the shader. | SinglePassMaterialBase | |
![]() | addMethodAt(method:EffectMethodBase, index:int):void
Adds a shading method to the end of a shader, at the specified index amongst
the methods in that section of the shader. | SinglePassMaterialBase | |
![]() | assetPathEquals(name:String, ns:String):Boolean | NamedAssetBase | |
![]() | dispose():void
Cleans up any resources used by the current object. | MaterialBase | |
![]() | getMethodAt(index:int):EffectMethodBase | SinglePassMaterialBase | |
![]() | hasMethod(method:EffectMethodBase):Boolean | SinglePassMaterialBase | |
![]() | removeMethod(method:EffectMethodBase):void | SinglePassMaterialBase | |
![]() | resetAssetPath(name:String, ns:String = null, overrideOriginal:Boolean = true):void | NamedAssetBase |
occlude | property |
occlude:Boolean
Whether or not an object with this material applied hides other objects.
public function get occlude():Boolean
public function set occlude(value:Boolean):void
OcclusionMaterial | () | Constructor |
public function OcclusionMaterial(occlude:Boolean = true, color:uint = 0xcccccc, alpha:Number = 1)
Creates a new OcclusionMaterial object.
Parametersocclude:Boolean (default = true ) — Whether or not to occlude other objects.
| |
color:uint (default = 0xcccccc ) — The material's diffuse surface color.
| |
alpha:Number (default = 1 ) — The material's surface alpha.
|
activatePass | () | method |
override arcane function activatePass(index:uint, stage3DProxy:Stage3DProxy, camera:Camera3D):void
Parameters
index:uint | |
stage3DProxy:Stage3DProxy | |
camera:Camera3D |
deactivatePass | () | method |
override arcane function deactivatePass(index:uint, stage3DProxy:Stage3DProxy):void
Parameters
index:uint | |
stage3DProxy:Stage3DProxy |