1 #ifndef GRASS_PARAMETERS_H
2 #define GRASS_PARAMETERS_H
7 #include <osg/Texture2D>
13 class GrassCullCallback;
24 inline float GrassBladeProfile(
float y)
25 {
return 0.5f * (0.5f + y*y*(9.3f - y*(19.6f - 9.8f*y))); }
28 void CreateGrassBlades();
31 void PrepareStateSets();
34 osg::ref_ptr<osg::Texture2D> bladeTexture, farSoilTexture, farGrassTexture;
112 #endif // GRASS_PARAMETERS_H