Click or drag to resize
Ab4d.SharpEngine logo

StandardMaterial(GpuImage, CommonSamplerTypes, String) Constructor

StandardMaterial constructor with diffuse texture. The textureImage is not disposed when disposing this material.

Namespace: Ab4d.SharpEngine.Materials
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax
C#
public StandardMaterial(
	GpuImage textureImage,
	CommonSamplerTypes samplerType = CommonSamplerTypes.Mirror,
	string? name = null
)

Parameters

textureImage  GpuImage
texture as GpuImage
samplerType  CommonSamplerTypes  (Optional)
samplerType (Mirror by default)
name  String  (Optional)
optional material name
See Also