Click or drag to resize
Ab4d.SharpEngine logo

PhysicallyBasedMaterial Methods

The PhysicallyBasedMaterial type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCreateMetalnessRoughnessImage 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.
Protected methodDispose Dispose
(Overrides MaterialDispose(Boolean))
Public methodDisposeWithTextures 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).
Public methodGetDetailsText GetDetailsText adds string that writes details about this Material into the specified StringBuilder.
(Overrides MaterialGetDetailsText(StringBuilder, Boolean, Boolean, Boolean))
Public methodGetTextureMap(TextureMapTypes) Returns the GpuImage for the specified map type. If the map type is not found, then null is returned.
Public methodGetTextureMap(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.
Public methodHasTextureMap Returns true if this PhysicallyBasedMaterial defines the specified map type.
Protected methodOnInitializeSceneResources Initializes resources with the specified Scene and GpuDevice. This method can be overriden and is called from InitializeSceneResources(Scene) method.
(Overrides MaterialOnInitializeSceneResources(Scene, VulkanDevice))
Public methodRemoveTextureMap Removes TextureMapInfo struct with the specified mapType from the TextureMaps.
Public methodSetTextureMap(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.
Public methodSetTextureMap(TextureMapTypes, GpuImage, CommonSamplerTypes) SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial.
Public methodSetTextureMap(TextureMapTypes, GpuImage, GpuSampler) SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial.
Public methodSetTextureMap(TextureMapTypes, RawImageData, CommonSamplerTypes, String) SetTextureMap updates (when the same mapType was already added) or adds a map type to this PhysicallyBasedMaterial.
Public methodSetTextureMap(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.
Public methodSetTextureMap(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.
Top
See Also