Click or drag to resize
AB4D logo

PixelsVisual3DSetTexture(ShaderResourceView, Size2, Color, SamplerState, BlendState) Method

SetTexture method sets the specified texture to be rendered for each pixel. This value is used when the object does not provide a PixelMaterial. When rendering texture, AlphaClipThreshold is set to 0.5 (pixel with alpha color values below this value will be clipped). To remove the texture, set the pixelTexture to null or call RemoveTexture.

Namespace: Ab3d.Visuals
Assembly: Ab3d.DXEngine.Wpf (in Ab3d.DXEngine.Wpf.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetTexture(
	ShaderResourceView pixelTexture,
	Size2 textureSize,
	Color colorMask,
	SamplerState textureSamplerState = null,
	BlendState textureBlendState = null
)

Parameters

pixelTexture  ShaderResourceView
ShaderResourceView that represents the texture
textureSize  Size2
size of the texture
colorMask  Color
Color that represents the color mask. This value is set to the PixelColor property
textureSamplerState  SamplerState  (Optional)
optional SamplerState
textureBlendState  BlendState  (Optional)
optional BlendState
See Also