Quantcast
Channel: Rhino Developer - McNeel Forum
Viewing all articles
Browse latest Browse all 8532

Draw Shadows using DisplayPipeline.PostDrawObjects()

$
0
0

@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 and DrawForeground


Is there a way to enable the shadows using these methods (DrawMeshShaded and DrawBrepShaded)?

Thanks.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 8532

Trending Articles