|
PixelsVisual3D Properties |
The PixelsVisual3D type exposes the following members.
Properties | Name | Description |
---|
| CreateDynamicVertexBuffer |
Gets or sets a Boolean that specifies if the vertex buffer that is used to sent pixels data to graphics card is created as a dynamic buffer.
This can provide slightly better performance for cases when pixels data is updated very often. Default value is false.
Setting this value will change the same properties in the used SimpleMesh and PixelMaterial.
|
| HasTransparentPixelColors |
Gets a Boolean that specifies if the PixelColors array contains any transparent color (alpha < 1).
This property is used only when PixelColors array is defined.
Default value is false.
|
| IsCircularPixel |
When true then each pixel is rendered as circle instead of square. Default value is false.
|
| IsWorldSize |
When true then the PixelSize is specified in 3D world coordinates (when using perspective camera, the size of the pixel is smaller when it is farther away from the camera).
When false (by default), then the size is defined in screen coordinates (the size of the pixel is always the same regardless of the distance from the camera).
|
| PixelColor |
Gets or sets the Color4 of pixels. Default value is White.
When PixelColors array is set, the value of this property is used as a mask that is multiplied with each color defined in the array.
|
| PixelColors |
Gets or sets the Color4 array that specifies the colors for each pixel. When color's alpha is 0, the pixel is not rendered.
When null, the color of all the pixels is set by the color defined by the PixelColor property.
When PixelColors array is set, the PixelColor is used as a mask that is multiplied with each color specified in this array.
To hide an individual pixel from rendering, set its color in PixelColors to a color with alpha value if zero (you can also set its size in the PixelSizes to 0).
|
| PixelSize |
Gets or sets the width and height of the pixel in screen space units.
|
| PixelSizes |
Gets or sets a float array that specifies the sizes for each pixel. When size is less of equal to 0, the pixel is not rendered.
When PixelSizes array is set, the PixelSize value is multiplied with each size defined in the array (set PixelSize to 1 to use the values specified in this array).
When null, the size of all the pixels is set by the value defined by the PixelSize property.
When individual values of PixelSizes are changed, you need to call UpdatePixelSizes method for the changes to take effect.
To hide an individual pixel from rendering, set its size in the PixelSizes to 0 (you can also set its color in PixelColors to a color with alpha value if zero).
|
| Positions |
Gets or sets an array of Vector3 that represents the 3D positions of pixels.
|
| PositionsBounds |
Gets or sets Bounds of the positions.
This value can be set before setting the Positions to manually set the Bounds.
This prevents automatic bounds calculations with checking all positions.
|
TopSee Also