<p>I have the following code in python using the vedo package</p>
<pre><code>mesh.lighting(style='plastic', ambient=None, diffuse=None, specular=None,
              specular_color=None, specular_power=None, metallicity=None, roughness=None)
</code></pre>
<p>I know that I need a combination for ambient, diffuse, specular value to creating phong lighting. How do I determine these values? And how do I know I have created phong lighting?</p>

<lighting><reflection>
How to pick values of ambient, diffuse, specular for Phong Lighting?
Probability_Sarah
# How to pick values of ambient, diffuse, specular for Phong Lighting?

(Asked by: username_0 on 2023-05-23)

I have the following code in python using the vedo package
mesh.lighting(style='plastic', ambient=None, diffuse=None, specular=None,
              specular_color=None, specular_power=None, metallicity=None, roughness=None)

I know that I need a combination for ambient, diffuse, specular value to creating phong lighting. How do I determine these values? And how do I know I have created phong lighting?

**Tags:** lighting, reflection

---

## 0 answers

