1

I am trying to create two types of Entities in my project. Both of them, I create them programmatically by generating a MeshResource and a Material.

The first one (named Placement Indicator) has a mesh of Plane and an UnlitMaterial, and I attach a texture on top. enter image description here

The second one (name Point Charge) has a mesh of Sphere and a SimpleMaterial. enter image description here

Everything works great, except that when these entities appear on the surface of my table, there are no shadows on the table.

How can I make the entities I created to create ground shadows on my table surface?

Jonathan Leffler
  • 730,956
  • 141
  • 904
  • 1,278

1 Answers1

1

You can try add lighting in you sceneUnderstanding options. It simulates light right above your entity to generate shadows

ArView.environment.sceneUnderstanding.options.insert(.receivesLighting)
pferdina
  • 11
  • 1