Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Search:

Type: Posts; User: LittlePootle

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,298

    I've answered my own question. I was using a...

    I've answered my own question.

    I was using a single vertex location and normal for each vertex on my object (e.g. a cube; 8 vertex locations, 8 normals). When the shapes touch I think this would...
  2. Actually, this works for me. But why would you...

    Actually, this works for me.

    But why would you want a single element array, why can't you just use a standard vec3?
    vec3 lightColor = vec3(1,1,1);
  3. Replies
    1
    Views
    1,298

    Touching Objects

    Say I'm drawing two objects that are lit with specular, diffusive and ambient lighting (specular and diffuse lighting coming from a single source), using shaders and a classic lighting model (e.g....
Results 1 to 3 of 3