Pixel |
The PixelMaterial type exposes the following members.
Name | Description | |
---|---|---|
Dispose |
Dispose
(Overrides MaterialDispose(Boolean)) | |
OnEffectChanged |
OnEffectChanged is called after the effect is changed - overridden methods can return false to prevent the change of effect.
(Overrides MaterialOnEffectChanged(Effect, Effect)) | |
OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be override and is called from InitializeSceneResources(Scene) method.
(Overrides MaterialOnInitializeSceneResources(Scene, VulkanDevice)) | |
ToString |
ToString
(Overrides MaterialToString) | |
UpdatePixelColors | UpdatePixelColors must be called when the values in the PixelColors array is changed. The method recreates the GpuBuffer that defined the pixel color data for the graphics card. | |
UpdatePixelColorsTransparency | UpdatePixelColorsTransparency method check if any color in the PixelColors has Alpha value less than 1 and sets HasTransparency accordingly. | |
UpdatePixelSizes | UpdatePixelSizes must be called when the values in the PixelSizes array is changed. The method recreates the GpuBuffer that defined the pixel sizes data for the graphics card. |