Erick,
gl_FragCoord is almost certainly not what you want (Google it). Try
something like this:
Vertex shader:
uniform vec3 center;
varying float dist;
void main()
{
vec4 vertex = gl_ModelViewMatrix * gl_Vertex;
dist = length(center - vertex.xyz);
}
Fragment shader:
uniform float rad;
v
Hi Nick,
If building it from source is an option for you. I have made a CMake script to
simplify the building some of the most important 3rd party dependencies.
https://github.com/bjornblissing/osg-3rdparty-cmake
Best regards
Björn
Den 25 jul 2015 1:47 em skrev Trajce Nikolov NICK
:
Hi Commun
Thanks Bjorn !
On Mon, Jul 27, 2015 at 12:00 AM, Björn Blissing
wrote:
> Hi Nick,
>
> If building it from source is an option for you. I have made a CMake
> script to simplify the building some of the most important 3rd party
> dependencies.
>
> https://github.com/bjornblissing/osg-3rdparty-cmak
3 matches
Mail list logo