![]() | |
Solid |
public class SolidColorMaterial : StandardMaterialBase, ITwoSidedMaterial
The SolidColorMaterial type exposes the following members.
Name | Description | |
---|---|---|
![]() | SolidColorMaterial(String) | SolidColorMaterial constructor. |
![]() | SolidColorMaterial(Color3, String) | SolidColorMaterial constructor with a diffuse color (Opacity is 1) |
![]() | SolidColorMaterial(Color4, String) | SolidColorMaterial constructor with diffuse color and opacity specified in Color4 struct (opacity is set from color's alpha value). The color is not alpha pre-multiplied. |
![]() | SolidColorMaterial(Color3, Single, String) | SolidColorMaterial constructor with a diffuse color and an opacity value |
![]() | SolidColorMaterial(GpuImage, CommonSamplerTypes, String) | StandardMaterial constructor with diffuse texture. The textureImage is not disposed when disposing this material. |
![]() | SolidColorMaterial(Stream, String, IBitmapIO, CommonSamplerTypes, Single, String) | StandardMaterial constructor with file stream of the diffuse texture. The texture will be lazily loaded when this material will be initialized. The loaded texture is disposed when disposing this material. This constructor does not have loadInBackground and initialDiffuseColor (as the one that takes textureFileName) because this would require that the fileStream is not closed until the texture is loaded (but there is no callback to the user to do that). |
![]() | SolidColorMaterial(String, IBitmapIO, CommonSamplerTypes, Single, NullableColor4, Boolean, String) | StandardMaterial constructor with file name of the diffuse texture. The texture will be lazily loaded when this material will be initialized. The loaded texture is disposed when disposing this material. |
Name | Description | |
---|---|---|
![]() | IsTwoSided | Gets a Boolean that specifies if the material should be rendered on both front and back side. |
Name | Description | |
---|---|---|
![]() | CreateClone | (Overrides MaterialCreateClone) |
![]() | OnInitializeSceneResources |
Initializes resources with the specified Scene and GpuDevice.
This method can be overriden and is called from InitializeSceneResources(Scene) method.
(Overrides StandardMaterialBaseOnInitializeSceneResources(Scene, VulkanDevice)) |
[Missing <remarks> documentation for "T:Ab4d.SharpEngine.Materials.SolidColorMaterial"]