Utility light handler for creating and providing light data for shader binding.
More...
#include <LightHandler.h>
|
|
void | addLightSource (NodePtr node) |
| | Adds a light source node.
|
| |
|
const vector< NodePtr > & | getLightSources () const |
| | Return the vector of active light sources.
|
| |
|
NodePtr | getFirstLightOfCategory (const string &category) |
| | Return the first active light source, if any, of the given category.
|
| |
|
const std::unordered_map< string, unsigned int > & | getLightIdentifierMap () const |
| | Get a list of identifiers associated with a given light nodedef.
|
| |
|
void | setLightSources (const vector< NodePtr > &lights) |
| | Set the list of light sources.
|
| |
|
void | setEnvRadianceMap (ImagePtr map) |
| | Set the environment radiance map.
|
| |
|
ImagePtr | getEnvRadianceMap () const |
| | Return the environment radiance map.
|
| |
|
void | setEnvIrradianceMap (ImagePtr map) |
| | Set the environment irradiance map.
|
| |
|
ImagePtr | getEnvIrradianceMap () const |
| | Return the environment irradiance map.
|
| |
|
void | setAlbedoTable (ImagePtr table) |
| | Set the directional albedo table.
|
| |
|
ImagePtr | getAlbedoTable () const |
| | Return the directional albedo table.
|
| |
|
LightIdMap | computeLightIdMap (const vector< NodePtr > &nodes) |
| | From a set of nodes, create a mapping of corresponding nodedef identifiers to numbers.
|
| |
| void | findLights (DocumentPtr doc, vector< NodePtr > &lights) |
| | Find lights to use based on an input document. More...
|
| |
| void | registerLights (DocumentPtr doc, const vector< NodePtr > &lights, GenContext &context) |
| | Register light node definitions and light count with a given generation context. More...
|
| |
Utility light handler for creating and providing light data for shader binding.
◆ findLights()
Find lights to use based on an input document.
- Parameters
-
| doc | Document to scan for lights |
| lights | List of lights found in document |
◆ registerLights()
Register light node definitions and light count with a given generation context.
- Parameters
-
| doc | Document containing light nodes and definitions |
| lights | Lights to register |
| context | Context to update |
The documentation for this class was generated from the following files:
- source/MaterialXRender/LightHandler.h
- source/MaterialXRender/LightHandler.cpp