Hi Ümit,

How can I reach related pixel's texture value in fragment shader if I doesn't use sampler2D?

I don't understand why you would *not* use sampler2D? You always need a sampler to sample the texture in a shader.

But if I doesn't define my sampler2D to related texture how can I access?

You just need to create a uniform and set it correctly. Then you'll have a sampler. See my other message.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to