Physically | |
The PhysicallyBasedMaterial type exposes the following members.
| Name | Description | |
|---|---|---|
| CreateMetalnessRoughnessImage | CreateMetalnessRoughnessImage creates a new RawImageData with both metalness and roughness data stored in the same image (metalness values are stored in the blue channel and roughness values are stored in the green channel). This is needed for PhysicallyBasedMaterial to work correctly. | |
| Dispose |
Dispose
(Overrides MaterialDispose(Boolean)) | |
| DisposeWithTextures | DisposeWithTextures disposes this Material and also disposes all the TextureMaps even if the GpuImages of the textures were created by the user (in this case the standard Dispose method does not dispose the GpuImages). | |
| GetDetailsText |
GetDetailsText adds string that writes details about this Material into the specified StringBuilder.
(Overrides MaterialGetDetailsText(StringBuilder, Boolean, Boolean, Boolean)) | |
| GetTextureMap(TextureMapTypes) | Returns the GpuImage for the specified map type. If the map type is not found, then null is returned. | |
| GetTextureMap(TextureMapTypes, GpuSampler) | Returns the GpuImage for the specified map type. The method also sets the gpuSampler as an out parameter. If the map type is not found, then null is returned. | |
| HasTextureMap | Returns true if this PhysicallyBasedMaterial defines the specified map type. | |
| 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)) | |
| RemoveTextureMap | Removes TextureMapInfo struct with the specified mapType from the TextureMaps. | |
| SetTextureMap(TextureMapTypes, GpuImage) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. This method sets the sampler type to Mirror. | |
| SetTextureMap(TextureMapTypes, GpuImage, CommonSamplerTypes) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. | |
| SetTextureMap(TextureMapTypes, GpuImage, GpuSampler) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. | |
| SetTextureMap(TextureMapTypes, RawImageData, CommonSamplerTypes, String) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. | |
| SetTextureMap(TextureMapTypes, String, IBitmapIO, CommonSamplerTypes, Boolean, Boolean, Boolean) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. The texture is created from the provided the file name. If this material is not yet initialized, then the texture is loaded when initialized. | |
| SetTextureMap(TextureMapTypes, Stream, String, IBitmapIO, CommonSamplerTypes, Boolean, Boolean, Boolean) | SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial. The texture is created from the provided file stream. If this material is not yet initialized, then the texture is loaded when initialized. |