This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm (Experimental)
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Objects
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Math Functionality
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Warning! This version of documentation is OUTDATED, as it describes an older SDK version! Please switch to the documentation for the latest SDK version.
Warning! This version of documentation describes an old SDK version which is no longer supported! Please upgrade to the latest SDK version.

Unigine::WorldOccluder Class

Header: #include <UnigineWorlds.h>
Inherits: Node
Read More

WorldOccluder Class

Members


static WorldOccluderPtr create ( const Math::vec3 & size ) #

Constructor. Creates a new world occluder with given dimensions.

Arguments

  • const Math::vec3 & size - Size of the new occluder.

void setBackFace ( bool face ) #

Updates the value indicating whether the back faces of the occluder box are used instead of front faces to occlude objects' surfaces. By default, the front faces are used.

Arguments

  • bool face - true to use the back faces of the occluder to cull surfaces; false to use the front ones.

bool isBackFace ( ) const#

Returns the value indicating whether the back faces of the occluder box are used instead of front faces to occlude objects' surfaces. By default, the front faces are used.

Return value

void setDistance ( float distance ) #

Updates the distance between the camera and the bounding box of the occluder, at which the occluder becomes disabled (it isn't processed by the CPU, hence it isn't rendered). By default, the inf value is used.

Arguments

  • float distance - The distance in units.

float getDistance ( ) const#

Returns the current distance between the camera and the bounding box of the occluder, at which the occluder becomes disabled (it isn't processed by the CPU, hence it isn't rendered). By default, the inf value is used.

Return value

The distance in units.

void setSize ( const Math::vec3 & size ) #

Updates the current dimensions of the world occluder box.

Arguments

  • const Math::vec3 & size - The occluder dimensions.

Math::vec3 getSize ( ) const#

Returns the current dimensions of the world occluder box.

Return value

The occluder dimensions.

static int type ( ) #

Returns the type of the node.

Return value

World type identifier.
Last update: 2021-02-17
Build: ()