Announcement

Collapse
No announcement yet.

VERTEX_POSTPROCESSING not working for HeightField objects?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VERTEX_POSTPROCESSING not working for HeightField objects?

    Hi,

    I'm trying to plot a heightfield using SoHeightField* classes and require custom shaders for our colormaps. I'm able to get a fragment shader working by attaching it to the FRAGMENT_COMPUTE_COLOR stage and overriding VVizComputeFragmentColor(...), but when I try to attach a vertex shader to the the VERTEX_POSTPROCESSING stage and override VVizVertexPostProcessing(), it does not seem to work. If I try to set a vec4 variable to a fixed value (vec4(1f, 1f, 1f, 1f)) in this stage, the fragment shader reads it back as vec4(0f, 0f, 0f, x), where x seems to be either 1f or a value close below. Any idea what might be causing this behaviour? How can I get vertex shader code running for heightfield objects?

    Cheers
    Gautham Ganapathy

  • #2
    I'm sorry, but this appears to be a bug. We are investigating.

    Comment

    Working...
    X