Click or drag to resize
Ab4d.SharpEngine logo

PixelsNodeSetTexture(GpuImage, Color4, CommonSamplerTypes, 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: 4.1.9680+a1b1e43de1ad9a7e35472c33948d688d7b40ef79
Syntax
C#
public void SetTexture(
	GpuImage pixelTexture,
	Color4 colorMask,
	CommonSamplerTypes textureSamplerType = CommonSamplerTypes.TransparentBorder,
	float alphaClipThreshold = 0,5f
)

Parameters

pixelTexture  GpuImage
ShaderResourceView that represents the texture
colorMask  Color4
Color4 that is multiplied by each texture color
textureSamplerType  CommonSamplerTypes  (Optional)
optional CommonSamplerTypes (TransparentBorder by default)
alphaClipThreshold  Single  (Optional)
optional AlphaClipThreshold (0.5 by default)
See Also