Problem lighting shader in game

Hello, I’m facing a problem with Unity MARS and the built-in pipeline. I’ve created a shader using Amplify, this shader uses World Position and Vertex Normal Node. I applied it on the sample of the MARS NavMesh, the material works well on Scene, Device View, Simulation View but not on the game view. All of the white color became transparent except the differents stains. Is there any solution solution for this kind of texture ?

Software versions :
Unity MARS 1.0.2
Unity 2019.3.15f1


The problem was about the lighting in the game, is there a solution to handle lights across the camera of the smartphone?

Lighting answer: “GameObject > MARS > Visualizers > Light Estimation Visualizer”
(configures a MARSLightEstimationVisualizer onto your directional light, and respects the AR lighting configuration. FYI, works way better if you update ARF to 4.0).

The particular issue you are having looks to be related to “Z fighting”, the “vertex normal mode” offset seems to be offsetting into the floor, try offseting it above the floor.

Thanks a lot for your answer. I will update ARF in my project. Before installing it, is there any known issues with the newest version of ARF because MARS dependency seems to be ARF 2.1.8 ?

6199085--680198--builtsettingscheck.png

hello @Spaekz

There are no know issues with the latest AR Foundation, just make sure that when you update your package versions, that they match with ARCore and ARKit as written in the docs: About MARS AR Foundation Providers | MARS AR Foundation Providers | 1.0.2

Hello, unfortunaly after few tries the app of the camera doesn’t work (just a black screen) and the settings appears to be the same.

hello @Spaekz ,

Black screen can mean several things, please check the FAQ (Frequently Asked Questions (FAQ) | MARS | 1.0.1 ) where it talks about the black screen issue. Let us know if it still doesnt work.