# Materials not working on iPhone in 3D

**URL:** <https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006>\
**Category:** p5.js\
**Created:** [October 30, 2018, 12:48am UTC](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006 "2018-10-30T00:48:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sscotti](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sscotti](https://discourse.processing.org/u/sscotti)\
**Post date:** [October 30, 2018, 12:48am UTC](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006/1 "2018-10-30T00:48:37Z")

</div>

On newer iPhones (8 and greater), the materials and shading in examples:  
[https://p5js.org/examples/3d-multiple-lights.html](https://p5js.org/examples/3d-multiple-lights.html)  
[https://p5js.org/examples/3d-materials.html](https://p5js.org/examples/3d-materials.html)  
[https://p5js.org/examples/3d-textures.html](https://p5js.org/examples/3d-textures.html)  
are not showing up. It appears that when texture, ambientMaterial, or specularMaterial are used, the shaded objects do not show up. It may be an iOS version issue and not the hardware, but I can’t check to be sure. The latest version iOS 12.0.1 on an iPhone 8+ definitely has this problem, and I have heard from colleagues that iPhone X also has the same issue.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [October 31, 2018, 5:37pm UTC](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006/2 "2018-10-31T17:37:23Z")

</div>

I would recommend submitting this issue, along with the specific iPhone model and OS version that you personally have tested on (and confirming which specific examples you have personally tested) here:

> **[processing/p5.js](https://github.com/processing/p5.js/issues)**
>
> p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Proces...

It might also be nice if other recent iPhone users in the forum could help confirm what you are reporting. My 5C, alas, cannot…

---

<div class="post-metadata">

**Author:** ![sscotti](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@sscotti](https://discourse.processing.org/u/sscotti)\
**Post date:** [October 31, 2018, 6:51pm UTC](https://discourse.processing.org/t/materials-not-working-on-iphone-in-3d/5006/3 "2018-10-31T18:51:46Z")

</div>

Thanks Jeremy

I just submitted a bug report on GitHub.

Regards

-Steve

> <https://github.com/processing/p5.js/issues/3293>
