Hello,
I need to apply PixelEffect to a VertexColorMaterial but this doesn't works.
Is this a bug?
Thank you
I need to apply PixelEffect to a VertexColorMaterial but this doesn't works.
Code:
// Create pixel effect
var _pixelEffect = dxViewportView.DXScene.DXDevice.EffectsManager.GetEffect<Ab3d.DirectX.Effects.PixelEffect>();
_pixelEffect.PixelSize = 2;
// Create vertex color material
var vertexColorMaterial = new Ab3d.DirectX.Materials.VertexColorMaterial()
{
PositionColors = positionColors, // positions of my model
Effect = _pixelEffect
};
System.Windows.Media.Media3D.Material myMaterial= new DiffuseMaterial(Brushes.Red);
myMaterial.SetUsedDXMaterial(vertexColorMaterial);
Is this a bug?
Thank you