Pixel |
The PixelMaterial type exposes the following members.
Name | Description | |
---|---|---|
GetDefaultRenderingQueue |
Returns the RenderingQueue that should be used to render this material.
(Overrides MaterialGetDefaultRenderingQueue(DXScene)) | |
RemoveTexture | Removes the texture that was set by calling SetTexture method. | |
ResetFixedUpVector | Resets the fixed up vector that was set by SetFixedUpVector(Vector3) to default behaviour (pixels always face the camera so that their up vector is perpendicular to the look direction). | |
SetFixedUpVector | SetFixedUpVector sets a fixed up Vector3 to be always used for up vector when orienting pixel towards the camera. By default, pixels always face the camera so that their up vector is perpendicular to the look direction. But for some cases (for example for rendering trees that always grow upwards), you can fix the up vector. To reset that up vector to default behaviour, call ResetFixedUpVector. Fixed up vector can be used only when IsWorldSize is set to true. | |
SetTexture(ShaderResourceView, Size2, SamplerState, BlendState, String) | SetTexture method sets the specified texture to be rendered for each pixel. This value is used when the object does not provide a PixelMaterial. When rendering texture, AlphaClipThreshold is set to 0.5 (pixel with alpha color values below this value will be clipped). To remove the texture, set the pixelTexture to null or call RemoveTexture. | |
SetTexture(ShaderResourceView, Size2, Color4, SamplerState, BlendState, String) | SetTexture method sets the specified texture to be rendered for each pixel. This value is used when the object does not provide a PixelMaterial. This also sets the PixelColor to colorMask. When rendering texture, AlphaClipThreshold is set to 0.5 (pixel with alpha color values below this value will be clipped). To remove the texture, set the pixelTexture to null or call RemoveTexture. | |
ToString |
ToString
(Overrides MaterialToString) | |
UpdatePixelColors | UpdatePixelColors method updates the DirectX vertex buffer from the current values of PixelColors. | |
UpdatePixelSizes | UpdatePixelSizes method updates the DirectX vertex buffer from the current values of PixelSize. |