Click or drag to resize
AB4D logo

PixelsVisual3DSetTexture(ShaderResourceView, Size2, 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,
	SamplerState textureSamplerState = null,
	BlendState textureBlendState = null
)

Parameters

pixelTexture  ShaderResourceView
ShaderResourceView that represents the texture
textureSize  Size2
size of the texture
textureSamplerState  SamplerState  (Optional)
optional SamplerState
textureBlendState  BlendState  (Optional)
optional BlendState
See Also