[osg-users] Centroid Varying Shader Variable

paul1492 at yahoo.com paul1492 at yahoo.com
Mon Jul 7 14:31:00 PDT 2008

Never mind.... I guess I found my answers here:

Paul P.

----- Original Message ----
From: "paul1492 at yahoo.com" <paul1492 at yahoo.com>
To: osg-users at lists.openscenegraph.org
Sent: Monday, July 7, 2008 3:19:12 PM
Subject: [osg-users] Centroid Varying Shader Variable

I'm attempting to define a "centroid varying variable":
Why do I need the "#version 120" line?
I send my shader programs through the C-Preprocessor (cpp) before giving them to OSG and CPP doesn't like this line (clearly it thinks its a command it should understand)..  
I assume this line is defining the Shader Version to use (1.2). If I don't have this line, the shader compiler doesn't like the "centroid" word.
Setting OSG_NOTIFY_LEVEL seems to report that glslLanguageVersion=1.2 even when I don't use #version.
Is there some other way to tell the shader compiler/OSG that that the shader is a 1.2 shader? 
While I'm at it, does the shader compiler natively support any CPP directives (i.e. # commands).?
Paul P.

osg-users mailing list
osg-users at lists.openscenegraph.org


More information about the osg-users mailing list