24#ifndef PXR_IMAGING_HD_LIGHT_H
25#define PXR_IMAGING_HD_LIGHT_H
28#include "pxr/imaging/hd/api.h"
29#include "pxr/imaging/hd/version.h"
30#include "pxr/imaging/hd/sprim.h"
36PXR_NAMESPACE_OPEN_SCOPE
38#define HD_LIGHT_TOKENS \
42 (enableColorTemperature) \
49 ((textureFile, "texture:file")) \
50 ((textureFormat, "texture:format")) \
57 ((shapingFocus, "shaping:focus")) \
58 ((shapingFocusTint, "shaping:focusTint")) \
59 ((shapingConeAngle, "shaping:cone:angle")) \
60 ((shapingConeSoftness, "shaping:cone:softness")) \
61 ((shapingIesFile, "shaping:ies:file")) \
62 ((shapingIesAngleScale, "shaping:ies:angleScale")) \
63 ((shapingIesNormalize, "shaping:ies:normalize")) \
64 ((shadowEnable, "shadow:enable")) \
65 ((shadowColor, "shadow:color")) \
66 ((shadowDistance, "shadow:distance")) \
67 ((shadowFalloff, "shadow:falloff")) \
68 ((shadowFalloffGamma, "shadow:falloffGamma")) \
77using HdLightPtrConstVector = std::vector<class HdLight const *>;
92 enum DirtyBits : HdDirtyBits {
94 DirtyTransform = 1 << 0,
96 DirtyShadowParams = 1 << 2,
97 DirtyCollection = 1 << 3,
98 DirtyResource = 1 << 4,
102 DirtyInstancer = 1 << 16,
103 AllDirty = (DirtyTransform
112 static std::string StringifyDirtyBits(HdDirtyBits dirtyBits);
119 void _UpdateInstancer(
121 HdDirtyBits* dirtyBits);
127PXR_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.