Click or drag to resize
Ab4d.SharpEngine logo

PixelsNodeSetTexture(GpuImage, Color4, GpuSampler, Single) Method

SetTexture method sets the specified texture to be rendered for each pixel. To remove the texture, set the pixelTexture to null or call RemoveTexture.

Namespace: Ab4d.SharpEngine.SceneNodes
Assembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.1.9316+94bbd23b55747f096f056a5602f7dd90558b3673
Syntax
C#
public void SetTexture(
	GpuImage pixelTexture,
	Color4 colorMask,
	GpuSampler textureSampler,
	float alphaClipThreshold = 0,5f
)

Parameters

pixelTexture  GpuImage
ShaderResourceView that represents the texture
colorMask  Color4
Color4 that is multiplied by each texture color
textureSampler  GpuSampler
GpuSampler
alphaClipThreshold  Single  (Optional)
optional AlphaClipThreshold (0.5 by default)
Remarks

[Missing <remarks> documentation for "M:Ab4d.SharpEngine.SceneNodes.PixelsNode.SetTexture(Ab4d.SharpEngine.Core.GpuImage,Ab4d.SharpEngine.Common.Color4,Ab4d.SharpEngine.Core.GpuSampler,System.Single)"]

See Also