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

Search: Search took 0.00 seconds.

  1. Replies
    15
    Views
    4,068

    Re: Samplers inside structs

    Just as promised, back with results and thanks for sharing the right way to go with multi pass lighting.

    Works like a charm.


    http://extraordinaire.pl/gd/indoor13.jpg ...
  2. Replies
    15
    Views
    4,068

    Re: Samplers inside structs

    Alfonse, thanks for sharing the info, i was just thinking how to overcome this and it seems like "do what everyone else does" is the best approach from all that i have seen.

    Thank you very much, i...
  3. Replies
    15
    Views
    4,068

    Re: Samplers inside structs

    This is confused and confusing. Array textures are part of 1.30; you shouldn't use the extension version if your shader is targeting 1.30. Same goes for all of GPU_shader4.
    [/QUOTE]

    Sorry, i...
  4. Replies
    15
    Views
    4,068

    Re: Samplers inside structs

    I have fallen into the same problem...



    #version 130
    #extension GL_EXT_gpu_shader4 : enable
    #extension GL_EXT_texture_array : enable

    #define OMNI_LIGHT_CLASS_ID 0x1011
  5. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    perfect!
    thank you very much !!

    i appreciate your help, there is nothing else than a source code that can clearly help out people to understand the thing.
  6. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    deadc0de - thanks for sharing,

    just for 'clarity' - did you manage to have cube shadow mapping done at all? or i am trying to get something running that would never work...

    i am getting down to...
  7. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    Ok managed to calculate light matrices per face,
    this is how they look per face:




    Photon,
  8. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    Right, i knew it's gonna be a nightmare to implement that,
    anyone has any example in regards to what Dark Photon said?

    I understand i can't do anything with what i already have as i need to have...
  9. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    this is getting v.heavy...

    Thanks photon, I'll try to implement what you've told,
    will come back with results.. if i manage to finish this.
  10. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    Almost there,


    http://www.fotoszok.pl/upload/31c9ae23.jpg

    The problem i have now is related to view matrix,
    when my camera is moved, shadows are moving along with camera view vector.
    ...
  11. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    Dark Photon:

    Thank you for a great introduction into this, of course my texture is set up as follows, so it meets the requirements.
  12. Replies
    16
    Views
    12,809

    Re: GLSL - cube shadows - projecting

    Alfonse Reinheart,
    you are totally right, the 'shadowCube' was something i was told when i was speaking to few guys around.

    And seriously I'll try hard to go back with the histories and find out...
  13. Replies
    16
    Views
    12,809

    GLSL - cube shadows - projecting

    Before i ask, i would like to apologize for starting here with a question.

    The thing is that i couldn't find answer to my problem anywhere, and decided to post it here finally, to speak to gurus....
Results 1 to 13 of 13