# Shader Error in the Voyage Example

**URL:** <https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744>\
**Category:** I'm Stuck\
**Created:** [November 26, 2021, 7:38pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744 "2021-11-26T19:38:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_Paris](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Arnaud\_Paris](https://community.nianticspatial.com/u/Arnaud_Paris)\
**Post date:** [November 26, 2021, 7:38pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744/1 "2021-11-26T19:38:42Z")

</div>

- **Issue category** : ample App aka ‘AR Voyage’
- **Device type & OS version** : iOS
- **Host machine & OS version** : Mac M1
- **ARDK version** : 1.0.1
- **Unity version** : 2021.2.3f1

Description of the issue:

When I try to open the Voyage Project I get the following error:  
Assets/Modules/Shared/Art/Lighting/LightEstimationHelper.cs(86,42): error CS0165: Use of unassigned local variable ‘normalizedIntensity’

Thanks for any help

---

<div class="post-metadata">

**Author:** ![Umaiya\_Doddamani1](https://avatars.discourse-cdn.com/v4/letter/u/439d5e/32.png) [@Umaiya\_Doddamani1](https://community.nianticspatial.com/u/Umaiya_Doddamani1)\
**Post date:** [November 26, 2021, 9:16pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744/2 "2021-11-26T21:16:19Z")

</div>

Hi Arnaud,

It seems you are building an AR Voyage sample application using “Windows, Mac, Linux” as the platform. We would suggest using iOS as a platform to build this sample application.

Steps to follow

- Open application in Unity Editor
- Goto File-\> Build Settings
- Select iOS under the platform and click on switch platform.  
You should be able to build the application without any issues.

Hope this helps.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Paris](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Arnaud\_Paris](https://community.nianticspatial.com/u/Arnaud_Paris)\
**Post date:** [November 26, 2021, 11:38pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744/3 "2021-11-26T23:38:09Z")

</div>

Thanks but I had already switched to the iOS platform when I started working on that project. So the problem wasn’t coming from the platform.

I then identified where the problem was coming from the script ‘LightEstimationHelper’ in which the end of the script had the variable ‘normalizedIntensity’ that didn’t seem to receive a value in the last part of the script for some reason. So I simply commented the last four lines of that script and this did the trick.

Still something worth looking at for the Niantic team since I imagine that ‘normalizedIntensity’ variable has some purpose. I just couldn’t figure out exactly what it does.

---

<div class="post-metadata">

**Author:** ![Patrick\_Catanzariti](https://sea2.discourse-cdn.com/niantic/user_avatar/community.nianticspatial.com/patrick_catanzariti/32/39_2.png) [@Patrick\_Catanzariti](https://community.nianticspatial.com/u/Patrick_Catanzariti)\
**Post date:** [December 4, 2021, 8:57pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744/4 "2021-12-04T20:57:06Z")

</div>

Can confirm, I’ve had this same error when importing in Voyage in ARDK for the first time (before being able to choose a build platform), when I switched to iOS, it did remove the error - but I commented out the last 4 lines initially in the file that @Arnaud_Paris mentioned because initially it would open in “Safe Mode” until I resolved that error. I uncommented them out when I switched to iOS build.

---

<div class="post-metadata">

**Author:** ![Maverick\_Niantic](https://avatars.discourse-cdn.com/v4/letter/m/8edcca/32.png) [@Maverick\_Niantic](https://community.nianticspatial.com/u/Maverick_Niantic)\
**Post date:** [March 5, 2026, 11:50pm UTC](https://community.nianticspatial.com/t/shader-error-in-the-voyage-example/744/5 "2026-03-05T23:50:26Z")

</div>

Age
