Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Seriema

Materials, what is the 4th value?

This topic is 5673 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

Hi there!! I''m playing with lights and material. I''m wondering about the .a/.w/.?/ 4th component of light properties, glMaterialfv(). I know that GL_POSITION in glLightf() uses the 4th component to decide if it''s a position or direction. Well... What does the 4th component on these do: Ambient Diffuse Specular Emissive Or am I just dreaming and there is no 4th component?.. "No lies of sugar can sweeten the sournes of reality" }+TITANIUM+{ A.K.A. DXnewbie[onMIRC]

Share this post


Link to post
Share on other sites
Advertisement
The params parameter contains four integer or floating-point values that specify the ambient RGBA reflectance of the material.

4th is alpha ;-)

Share this post


Link to post
Share on other sites

  • 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!