Hi, Farshid Lashkari
Thank you very much.
Cheers,
Yuriy
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=26117#26117
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscen
Hi Yuriy,
The default freetype font uses alpha textures, so only the alpha component
of the texture contains the font data. Here is a basic fragment shader that
should work with the freetype font plugin:
uniform sampler2D bitmap;
void main()
{
gl_FragColor = texture2D(bitmap, gl_TexCoord[0].s
Hi,
I try to use shaders with osgText to make some effects with text. But how I can
set up uniform variable with font texture to process it in fragment shader? Or
may be I should do something another to have result?
Primitive fragment shader:
Code:
uniform sampler2D bitmap;
varying vec2 texel
3 matches
Mail list logo