GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Instances3DFilter Struct Reference

Filter parameters that determine which instances in a 3D batch to draw. More...

#include <GREM/graphics_3d/Instances3D.hpp>

Public Attributes

FunctionView< bool(vec3 position, float boundingRadius, float distanceOrderingBias)> transparentInstanceFilter
 Function that determines whether a specific transparent instance should be drawn or not.
bool skipAlphaBlendedModelMeshInstances = false
 If set, alpha-blended model mesh instances will not be drawn.
bool skipOpaqueModelMeshInstances = false
 If set, non-alpha-blended model mesh instances will not be drawn.
bool skipAll3DInstances = false
 If set, 3D instances will not be drawn.
bool skipAll2DInstances = false
 If set, 2D instances will not be drawn.

Detailed Description

Filter parameters that determine which instances in a 3D batch to draw.

Member Data Documentation

◆ transparentInstanceFilter

FunctionView<bool(vec3 position, float boundingRadius, float distanceOrderingBias)> grem::graphics::Instances3DFilter::transparentInstanceFilter
Initial value:
= [](vec3, float, float) -> bool {
return true;
}
vec< 3, float > vec3
Definition math.hpp:439

Function that determines whether a specific transparent instance should be drawn or not.

◆ skipAlphaBlendedModelMeshInstances

bool grem::graphics::Instances3DFilter::skipAlphaBlendedModelMeshInstances = false

If set, alpha-blended model mesh instances will not be drawn.

◆ skipOpaqueModelMeshInstances

bool grem::graphics::Instances3DFilter::skipOpaqueModelMeshInstances = false

If set, non-alpha-blended model mesh instances will not be drawn.

◆ skipAll3DInstances

bool grem::graphics::Instances3DFilter::skipAll3DInstances = false

If set, 3D instances will not be drawn.

◆ skipAll2DInstances

bool grem::graphics::Instances3DFilter::skipAll2DInstances = false

If set, 2D instances will not be drawn.


The documentation for this struct was generated from the following file: