Class TImageBackgroundNode
Unit
X3DNodes
Declaration
type TImageBackgroundNode = class(TAbstractBackgroundNode)
Description
Display a 2D image as a background.
Hierarchy
Overview
Methods
Properties
Description
Methods
 |
procedure CreateNode; override; |
|
|
 |
class function ClassX3DType: string; override; |
|
|
 |
procedure SetTexCoords(const Value: array of TVector2); |
|
|
Properties
 |
property FdColor: TSFColorRGBA read FFdColor; |
See also
- Color
- Color that is multiplied by the texture color.
|
 |
property FdTexture: TSFNode read FFdTexture; |
See also
- Texture
- Texture displayed in a full-screen quad.
|
 |
property FdTexCoords: TMFVec2f read FFdTexCoords; |
|
Texture coordinates of the full-screen quad. By default they use the whole texture area:
Vector2(0, 0),
Vector2(1, 0),
Vector2(1, 1),
Vector2(0, 1)
It is undefined what happens if there are not exactly 4 items.
|
 |
property Color: TCastleColor read GetColor write SetColor; |
|
Color that is multiplied by the texture color. Opaque white by default.
Note that the alpha component of this color matters (just like the alpha channel of the texture in Texture). If the resulting image is partially-transparent, it will be mixed with black color.
|
 |
property Texture: TAbstractTextureNode read GetTexture write SetTexture; |
|
Texture displayed in a full-screen quad. Only 2D single-texture nodes are supported now. If you leave this as Nil, the image background has no visible effect.
|
Generated by PasDoc 0.16.0.