# \[SOLVED\] Switching between Phong/Blinn in real-time

**URL:** <https://forum.playcanvas.com/t/solved-switching-between-phong-blinn-in-real-time/1460>\
**Category:** Help & Support\
**Created:** [January 31, 2016, 11:36am UTC](https://forum.playcanvas.com/t/solved-switching-between-phong-blinn-in-real-time/1460 "2016-01-31T11:36:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [January 31, 2016, 11:36am UTC](https://forum.playcanvas.com/t/solved-switching-between-phong-blinn-in-real-time/1460/1 "2016-01-31T11:36:59Z")

</div>

Hello,

Is there a way to change the shader program from phong\<-\>blinn on realtime? Using the material.shader property?

If it is possible, how do I get a reference to the internal phong/blinn shaders to assign them?

Thank you in advance,  
Leonidas

---

<div class="post-metadata">

**Author:** ![Leonidas](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/leonidas/32/6495_2.png) [@Leonidas](https://forum.playcanvas.com/u/Leonidas)\
**Post date:** [January 31, 2016, 11:45am UTC](https://forum.playcanvas.com/t/solved-switching-between-phong-blinn-in-real-time/1460/2 "2016-01-31T11:45:49Z")

</div>

Ah, found it, had to use the .shadingModel property.

---

<div class="post-metadata">

**Author:** ![will](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/will/32/4560_2.png) [@will](https://forum.playcanvas.com/u/will)\
**Post date:** [January 31, 2016, 12:35pm UTC](https://forum.playcanvas.com/t/solved-switching-between-phong-blinn-in-real-time/1460/3 "2016-01-31T12:35:54Z")

</div>

Just a note to say that the phong shading model should really be considered legacy and the intention is that we’ll remove it at some point in the future. Everybody should really be using the physical (blinn) model from now on.
