Hi Srikanth,

Your shader just needs to handle the base texture as well as the
colour you generate for the height.  I can't really teach you all you
need to know from a simple post, I have to recommend that you learn a
bit more about OpenGL shaders directly from OpenGL books/resources on
the topic.  The OSG just wraps OpenGL shaders so what you learn from
OpenGL resources directly applies.

Robert.

On 12 August 2013 05:54, Srikanth K P <[email protected]> wrote:
> Hi,
>
> Hello.
> I am new to OSG. I have been given a task to drape the terrain with different 
> color depending on altitude from eye point. I am going through the 
> OpenSceneGraph 3.0 Beginner's Guide. I went through thro the shader example 
> by OSG. I modified the program which takes the cow model with terrain. The 
> problem I am facing is the color fully covers the terrain texture and texture 
> is not visible at all. Is there a way to blend the color with terrain texture 
> ?
>
> ...
>
> Thank you in advance
>
> Cheers,
> Srikanth
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55821#55821
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to