Reputation: 369
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
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