Click or drag to resize
AB4D logo

PixelMaterialSetTexture(ShaderResourceView, Size2, Color4, 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. This also sets the PixelColor to colorMask. 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,
	Color4 colorMask,
	SamplerState textureSamplerState = null,
	BlendState textureBlendState = null,
	string textureResourceName = null
)

Parameters

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