|
PixelEffectSetTexture(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.DirectX.EffectsAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax 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