 |
InstancedMeshNodeSetDiffuseTexture(GpuImage, GpuSampler, Single) Method |
Sets the diffuse texture and sampler that will be rendered by each instance.
This also sets the color mask to white to preserve the color from the texture.
By default, the alpha clip threshold is set to 0.5.
When diffuseTexture is null, then the texture is removed.
Namespace: Ab4d.SharpEngine.SceneNodesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntaxpublic void SetDiffuseTexture(
GpuImage? diffuseTexture,
GpuSampler diffuseTextureSampler,
float alphaClipThreshold = 0,5f
)
Parameters
- diffuseTexture GpuImage
- GpuImage that is used as a diffuse texture for each instance; when null, then the texture is removed
- diffuseTextureSampler GpuSampler
- GpuSampler
- alphaClipThreshold Single (Optional)
- optional alpha clip threshold (alpha color values below this value will be clipped - not rendered and their depth will not be written to depth buffer). Default value is 0.5
Remarks[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.InstancedMeshNode.SetDiffuseTexture(Ab4d.SharpEngine.Core.GpuImage,Ab4d.SharpEngine.Core.GpuSampler,System.Single)"]
See Also