Hi Umit,

> You have used same texture unit for 2 texture so your last initilazed
> texture on unit 1 active. I mean, EarthCloudGloss active on unit 1. so you
> should texture EarthCloudGloss to the unit 2.

That's what I thought but it was not working. There was a silly
mistake in my osg code, I was reusing texture2 instead of texture3 in
the last image assignment (as you can see in my first message). That's
fixed now.

My problem is tha I have a fixed possition in world coordinates
(LightPosition) as a Uniform parameter. At the time of passing it to
the vertex shader, apparently it is seen as fixed in screen
coordinates. If I move the view, the scene moves but not the effect of
the shader. How should I convert the vertex coordinate?

I know this is maybe a faq but as I told, it's my first shader
experiment, and I can't make it work.

I will highly appreciate any help.

Best regards,

-- A.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to