namespace osgEarth
{
namespace ShaderComp
{
// User function injection points.
enum FunctionLocation
{
// vertex is in model space (equivalent to gl_Vertex).
LOCATION_VERTEX_MODEL,
// vertex is in view(aka eye) coordinates, with the camera at 0,0,0
// looking down the -Z axis.
LOCATION_VERTEX_VIEW,
// vertex is in post-perspective coordinates; [-w..w] along each axis
LOCATION_VERTEX_CLIP,
// tessellation control shader; model space
LOCATION_TESS_CONTROL,
// tessellation evalulation shader; model space
LOCATION_TESS_EVALUATION,
// geometry shader; inputs are in model space.
LOCATION_GEOMETRY,
// fragment is being colored.
LOCATION_FRAGMENT_COLORING,
// fragment is being lit.
LOCATION_FRAGMENT_LIGHTING,
C++学习(四)namespace可以嵌套
最新推荐文章于 2023-03-06 09:30:01 发布