Hi all,

     I am reasonably new to shaders. I intend to implement a floating point 
lookup table. The aim is to write a fragment shader that takes an in coming RGB 
Color, Lookup a floating value from the table and write it to the frame buffer 
pixel. I tried using a GL_FLOAT type 1-D LUMINANCE texture and accessing 
it using a sampler, followed by GL_FLOAT type 1-D RGB texture, but both of them 
put up a blank screen. 

    Thereafter, I tried to declare a varying float Array in the vertex shader 
and computed it there and used the values in the fragment shader. But now I get 
the following error:
    ** error C5041: cannot locate suitable resource to bind parameter "<null 
atom>" **

    Please help.

Regards

Harash


      
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to