Added --NO_CULLING, --VIEW_FRSUTUM and --VIEW_FRUSTUM_SIDES/--vfs command line options for setting the Camera CullingMode value
This commit is contained in:
@@ -117,6 +117,8 @@ void CullSettings::readEnvironmentalVariables()
|
||||
|
||||
void CullSettings::readCommandLine(ArgumentParser& arguments)
|
||||
{
|
||||
OSG_INFO<<"CullSettings::readCommandLine(ArgumentParser& arguments)"<<std::endl;
|
||||
|
||||
// report the usage options.
|
||||
if (arguments.getApplicationUsage())
|
||||
{
|
||||
@@ -124,6 +126,11 @@ void CullSettings::readCommandLine(ArgumentParser& arguments)
|
||||
arguments.getApplicationUsage()->addCommandLineOption("--NEAR_FAR_RATIO <float>","Set the ratio between near and far planes - must greater than 0.0 but less than 1.0.");
|
||||
}
|
||||
|
||||
while(arguments.read("--NO_CULLING")) setCullingMode(NO_CULLING);
|
||||
while(arguments.read("--VIEW_FRUSTUM")) setCullingMode(VIEW_FRUSTUM_CULLING);
|
||||
while(arguments.read("--VIEW_FRUSTUM_SIDES") || arguments.read("--vfs") ) setCullingMode(VIEW_FRUSTUM_SIDES_CULLING);
|
||||
|
||||
|
||||
std::string str;
|
||||
while(arguments.read("--COMPUTE_NEAR_FAR_MODE",str))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user