Search:

Type: Posts; User: Sergejack

Search: Search took 0.00 seconds.

  1. Re: Passing a mat3 attribute to a Vertex Shader

    Thanks but this won't work with webGL since you don't work with numeric pointers in it (so "location x+1" is invalid).
  2. attribute mat3 should prevent shader from compiling

    Since "attribute mat3" is useless with webGL (it cannot be fully set), that feature should not be allowed and cause compilation to fail.
    Having unusable features might just cause confusion.
  3. Re: Passing a mat3 attribute to a Vertex Shader

    I guess "attribute mat3" is just a mecanism that cannot be used yet.

    Thus, it should just not compile when present in the shaders' code.
  4. Re: Passing a mat3 attribute to a Vertex Shader

    Does nobody know? :(
  5. Replies
    1
    Views
    2,739

    vertexAttribPointer + stride + offest?

    vertexAttribPointer(uint index, int size, enum type,bool normalized, long stride, long offset)

    Hello.

    I'm trying figuring out what goes wrong when I try to call this method with a stride or...
  6. Thread: picking

    by Sergejack
    Replies
    4
    Views
    3,111

    Re: picking

    if you think you can identify your objects using 4 [0-1] floats, you can just send a uniform with the x.y position of your mouse cursor to the FSH.
    Then in the FSH, when the screen coordinate are...
  7. Replies
    1
    Views
    1,737

    Re: WebGL oddities

    Depth buffer
    I think you can turn on/off read/write specifically using another command if that's what you're looking for.

    Shader variables
    Varying?! You can access Uniform and Attribute from...
  8. Replies
    1
    Views
    2,409

    Re: cullFace not working

    Don't you need to enable culling as well?
  9. Replies
    4
    Views
    2,372

    Re: Shadows in WebGL

    You should look for explanations about Shadow Map(ping).
  10. Replies
    1
    Views
    1,443

    Re: How to use transparency?

    This is a very complex question, actually.
    The question is co complex, I personally don't want to handle transparency in my engine.

    Anyway, you could try the Dual Deep Peeling method.
  11. Re: Background = transparent??? Why is it not working

    What web browsers did you run your demo on?
  12. Passing a mat3 attribute to a Vertex Shader

    Hello.

    I'd like to pass a mat3 attribute to a Vertex Shader.
    I know how to pass vectors but despite I tried almost everythng I don't manage to pass a ma3.
    I know I could just pass 3 vec3 and...
Results 1 to 12 of 12