7#ifndef PXR_IMAGING_HD_LIGHT_H
8#define PXR_IMAGING_HD_LIGHT_H
11#include "pxr/imaging/hd/api.h"
12#include "pxr/imaging/hd/version.h"
13#include "pxr/imaging/hd/sprim.h"
19PXR_NAMESPACE_OPEN_SCOPE
21#define HD_LIGHT_TOKENS \
25 (enableColorTemperature) \
32 ((textureFile, "texture:file")) \
33 ((textureFormat, "texture:format")) \
40 ((shapingFocus, "shaping:focus")) \
41 ((shapingFocusTint, "shaping:focusTint")) \
42 ((shapingConeAngle, "shaping:cone:angle")) \
43 ((shapingConeSoftness, "shaping:cone:softness")) \
44 ((shapingIesFile, "shaping:ies:file")) \
45 ((shapingIesAngleScale, "shaping:ies:angleScale")) \
46 ((shapingIesNormalize, "shaping:ies:normalize")) \
47 ((shadowEnable, "shadow:enable")) \
48 ((shadowColor, "shadow:color")) \
49 ((shadowDistance, "shadow:distance")) \
50 ((shadowFalloff, "shadow:falloff")) \
51 ((shadowFalloffGamma, "shadow:falloffGamma")) \
60using HdLightPtrConstVector = std::vector<class HdLight const *>;
75 enum DirtyBits : HdDirtyBits {
77 DirtyTransform = 1 << 0,
81 DirtyShadowParams = 1 << 2,
82 DirtyCollection = 1 << 3,
83 DirtyResource = 1 << 4,
87 DirtyInstancer = 1 << 16,
88 AllDirty = (DirtyTransform
97 static std::string StringifyDirtyBits(HdDirtyBits dirtyBits);
104 void _UpdateInstancer(
106 HdDirtyBits* dirtyBits);
112PXR_NAMESPACE_CLOSE_SCOPE
A light model, used in conjunction with HdRenderPass.
const SdfPath & GetInstancerId() const
Returns the identifier of the instancer (if any) for this Sprim.
Adapter class providing data exchange with the client scene graph.
Sprim (state prim) is a base class of managing state for non-drawable scene entity (e....
A path value used to locate objects in layers or scenegraphs.
This file defines some macros that are useful for declaring and using static TfTokens.
#define TF_DECLARE_PUBLIC_TOKENS(...)
Macro to define public tokens.