| Package | de.nulldesign.nd3d.material |
| Class | public class ReflectBitmapMaterial |
| Inheritance | ReflectBitmapMaterial BitmapMaterial Material |
| Property | Defined by | ||
|---|---|---|---|
![]() | additive : Boolean = false | Material | |
![]() | alpha : Number | BitmapMaterial | |
![]() | calculateLights : Boolean = true | Material | |
![]() | color : uint | BitmapMaterial | |
![]() | colorTransform : ColorTransform | BitmapMaterial | |
![]() | customRenderer : TextureRenderer | Material | |
![]() | doubleSided : Boolean = false | Material | |
![]() | isInteractive : Boolean = false | Material | |
![]() | isSprite : Boolean | Material | |
![]() | smoothed : Boolean | Material | |
| texture : BitmapData [read-only]
| ReflectBitmapMaterial | ||
| Property | Defined by | ||
|---|---|---|---|
![]() | _alpha : Number = 1 | Material | |
![]() | _color : uint = 0xffffff | Material | |
![]() | _ct : ColorTransform | BitmapMaterial | |
| gradient : Shape | ReflectBitmapMaterial | ||
![]() | isDirty : Boolean | BitmapMaterial | |
| isReflectDirty : Boolean | ReflectBitmapMaterial | ||
| ratio : Number | ReflectBitmapMaterial | ||
| reference : BitmapMaterial | ReflectBitmapMaterial | ||
| tempBmp : BitmapData | ReflectBitmapMaterial | ||
![]() | _texture : BitmapData = null | Material | |
| topAlpha : Number | ReflectBitmapMaterial | ||
![]() | transformedTexture : BitmapData | BitmapMaterial | |
| Method | Defined by | ||
|---|---|---|---|
|
ReflectBitmapMaterial(reference:BitmapMaterial, ratio:Number = 0.3, topAlpha:Number = 0.3)
Create a material reflection.
| ReflectBitmapMaterial | ||
![]() | BitmapMaterial | ||
|
update():void
| ReflectBitmapMaterial | ||
|
updateReflect():void
| ReflectBitmapMaterial | ||
| Method | Defined by | ||
|---|---|---|---|
|
createGradient(w:int, h:int):void
| ReflectBitmapMaterial | ||
![]() |
getDefaultTransform():ColorTransform
| BitmapMaterial | |
| gradient | property |
protected var gradient:Shape
| isReflectDirty | property |
protected var isReflectDirty:Boolean
| ratio | property |
protected var ratio:Number
| reference | property |
protected var reference:BitmapMaterial
| tempBmp | property |
protected var tempBmp:BitmapData
| texture | property |
texture:BitmapData [read-only]Implementation
public function get texture():BitmapData
| topAlpha | property |
protected var topAlpha:Number
| ReflectBitmapMaterial | () | constructor |
public function ReflectBitmapMaterial(reference:BitmapMaterial, ratio:Number = 0.3, topAlpha:Number = 0.3)Create a material reflection.
Parametersreference:BitmapMaterial — Material to reflect
|
|
ratio:Number (default = 0.3) — Height ratio of the reflection
|
|
topAlpha:Number (default = 0.3) — Maximum alpha of the reflection
|
| createGradient | () | method |
protected function createGradient(w:int, h:int):voidParameters
w:int |
|
h:int |
| update | () | method |
public override function update():void
| updateReflect | () | method |
public function updateReflect():void