Jump to content
  • Advertisement
Sign in to follow this  
tcige

put the point light in the back, why the triangle still has the color

This topic is 1925 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

diffuse light has been blocked, but the ambient light still has

 

in reality, it should be almost black, how can i do that

Share this post


Link to post
Share on other sites
Advertisement

If there is ambient light, it will be applied. Turn off ambient. If ambient is already off, check your normals. If normals are ok, check normal and light transform.

Share this post


Link to post
Share on other sites

If there is ambient light, it will be applied. Turn off ambient. If ambient is already off, check your normals. If normals are ok, check normal and light transform.

 

yeah, it's the problem of ambient

 

if i want to keep the ambient part of light and material, can the front triangle be black?

Share this post


Link to post
Share on other sites

No. Ambient is a pure +.

If ambient is (25, 32, 48), those numbers will be added to all shaded pixels with no distance or orientation attenuation. See Mathematics of lighting. Note

 

Global Illumination = Ambient Light + Diffuse Light + Specular Light + Emissive Light

 

Also see Ambient Lighting. Ambient light is "constant" light.

Share this post


Link to post
Share on other sites

No. Ambient is a pure +.

If ambient is (25, 32, 48), those numbers will be added to all shaded pixels with no distance or orientation attenuation. See Mathematics of lighting. Note

 

Global Illumination = Ambient Light + Diffuse Light + Specular Light + Emissive Light

 

Also see Ambient Lighting. Ambient light is "constant" light.

 

thanks a lot

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!