Click or drag to resize
AB4D logo

PixelMaterialSetTexture(ShaderResourceView, Size2, SamplerState, BlendState, String) 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.DirectX.Materials
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax
C#
public void SetTexture(
	ShaderResourceView pixelTexture,
	Size2 textureSize,
	SamplerState textureSamplerState = null,
	BlendState textureBlendState = null,
	string textureResourceName = 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
textureResourceName  String  (Optional)
optional texture resource name
See Also