user1207524
user1207524

Reputation: 369

Adding real-world lighting to RealityKit's VideoMaterial

I am using VideoMaterial material on plane, in RealityKit to play video over an object in AR. This works easily, but I would like the video to change brightness based on the real world lighting. I thought this is done automatically, but with the VideoMaterial it doesn't work.

Can you please advice me whether it's possible to do this?

Upvotes: 1

Views: 309

Answers (1)

Andy Jazz
Andy Jazz

Reputation: 58563

RealityKit's VideoMaterial does not respond to lighting. VideoMaterials are basically UnlitMaterials, which means that scene lighting doesn’t affect them.

In SceneKit, in exactly the same way, LightingModel.constant does not react to light.

P. S.

Add an extra semi-transparent top plane with SimpleMaterial to integrate a video into environment.

Upvotes: 1

Related Questions