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: SwitchMan92

Search: Search took 0.00 seconds.

  1. Replies
    4
    Views
    791

    try this vertex shader for depth : #version...

    try this vertex shader for depth :

    #version 330 core

    layout(location = 0) in vec3 Position;


    out vec4 pos;

    uniform mat4 depthMVP;
  2. Replies
    4
    Views
    791

    Hi, How do you set up your depthMVP ? have you...

    Hi,

    How do you set up your depthMVP ? have you tried to set up camera to light to be sure you're rendering the same position and direction as the light ?

    Try to set glCullFace(GL_BACK); before...
  3. Replies
    2
    Views
    602

    Thanks for your answer Nowhere :) Actually the...

    Thanks for your answer Nowhere :)

    Actually the coordinates calculation was right, i was just dividing these coordinates by W too early in the shader. It's now fixed. and i'm very happy^^. Merry...
  4. Replies
    2
    Views
    602

    Shadow Mapping UV coordinates

    Hello everyone,

    I'm trying to implement spot light shadow mapping in my opengl program (so perspective projection matrix), the issue i'm facing seems to be that i'm not getting the correct shadow...
Results 1 to 4 of 4