Pixel | |
The PixelMaterial type exposes the following members.
| Name | Description | |
|---|---|---|
| Dispose |
Dispose
(Overrides MaterialDispose(Boolean)) | |
| OnDiffuseTextureDisposing | OnDiffuseTextureDisposing | |
| 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 overriden and is called from InitializeSceneResources(Scene) method.
(Overrides MaterialOnInitializeSceneResources(Scene, VulkanDevice)) | |
| SetDiffuseTextureSampler | SetDiffuseTextureSampler method sets the DiffuseTextureSampler to the specified sampler. It also sets the DiffuseTextureSamplerType to Other. It is also possible to set the DiffuseTextureSampler to a common sampler by setting the DiffuseTextureSamplerType. | |
| 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. |