@Harper wrote:
Hello,
When an object is added to Document, shadows are displayed in Rendered and Raytraced Display Modes, although when it’s drawn like that:
DisplayPipeline.PostDrawObjects += PostDrawObjects; private void PostDrawObjects(object sender, DrawEventArgs e) { e.Display.DrawMeshShaded(meshToDraw,displayMaterial); e.Display.DrawBrepShaded(brepToDraw,displayMaterial); }
There are no shadows, it happens using
PostDraw
,DrawOverlay
andDrawForeground
Is there a way to enable the shadows using these methods (DrawMeshShaded and DrawBrepShaded)?Thanks.
Posts: 1
Participants: 1