Results 1 to 2 of 2

Thread: Specular Lighting

  1. #1
    Senior Member Regular Contributor
    Join Date
    May 2002
    Posts
    164

    Specular Lighting

    Thanks in advance for any help...

    Do I need to do anything specific to disable specular highlights?

    I am not setting a specular component, but I still see specular highlights.

    My light is defined as:


    GLfloat lightPos0[] = { X, Y+3000.0f, Z, 1.0 };
    glLightfv( GL_LIGHT0, GL_POSITION, lightPos0 );

    GLfloat lightdrop = 1.0f; //lower = brighter
    glLightf( GL_LIGHT0, GL_CONSTANT_ATTENUATION,lightdrop );
    GLfloat ltDiffuse0[] = { 1.0f, 1.0f, 1.0f, 1.0f };
    glLightfv( GL_LIGHT0, GL_DIFFUSE, ltDiffuse0 );
    glEnable(GL_LIGHT0);

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2002
    Posts
    164

    Re: Specular Lighting

    I found my problem - I was setting a specular material component unintentionally

    Please disregard previous post
    Thanks

Similar Threads

  1. specular lighting
    By gl_Beginner in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 09-08-2012, 01:11 AM
  2. How to introduce Specular and Diffuse lighting into Bumped lighting
    By Liable in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 12-06-2004, 05:48 PM
  3. specular lighting in LH
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-10-2003, 01:52 PM
  4. Specular lighting
    By Old GLman in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 11-27-2002, 01:12 PM
  5. Own specular lighting
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 10-29-2002, 04:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean