|  | 
| StandardMaterialBaseCreateDiffuseTexture(RawImageData, CommonSamplerTypes, String, Single) Method | 
            CreateDiffuseTexture creates a GpuImage object from the specified rawImageData.
            If this material was already initialized (
Scene property is set), then this method sets the 
DiffuseTexture, 
DiffuseTextureSamplerType and 
DiffuseTextureSampler properties.
            If this material was not yet initialized, then the creation of the texture is postponed until the InitializeResources method is called.
            To immediately create the texture call this method and pass a VulkanDevice as the first parameter.
            The created GpuImage is disposed when this Material is disposed.
            
 Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.2.9386+3a404a3e1ebfa4efd231da7fe6f10dfb23b95dc4
 Syntax
Syntaxpublic void CreateDiffuseTexture(
	RawImageData rawImageData,
	CommonSamplerTypes samplerType = CommonSamplerTypes.Mirror,
	string? imageSource = null,
	float alphaClipThreshold = 0f
)
Parameters
- rawImageData  RawImageData
- RawImageData with texture data
- samplerType  CommonSamplerTypes  (Optional)
- texture sampler type (Mirror by default)
- imageSource  String  (Optional)
- optional string that defines the source of the image (usually file name)
- alphaClipThreshold  Single  (Optional)
- optional float that defines the AlphaClipThreshold (0 by default)
 See Also
See Also