 |
StandardMaterial(GpuImage, CommonSamplerTypes, String) Constructor |
StandardMaterial constructor with diffuse texture.
The textureImage is not disposed when disposing this material.
Namespace: Ab4d.SharpEngine.MaterialsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 4.0.9584+ba1aaa26d4181dd3fa8ed7b6398391d1affa36c8
Syntaxpublic 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