21 void setSource(
const std::shared_ptr<ALight>& source);
26 std::shared_ptr<TTexture<math::Spectrum>> loadAttenuationTexture()
const;
28 std::shared_ptr<ALight> m_source;
34 ClassType clazz(
"ies-attenuated-light");
35 clazz.docName(
"IES-Attenuated Light Actor");
37 "Attenuating energy emitting strength of a light with an IES profile.");
41 source.description(
"The light source that will be attenuated.");
43 clazz.addField(source);
48 clazz.addField(iesFile);
Definition AIesAttenuatedLight.h:16
PH_DEFINE_SDL_CLASS(TSdlOwnerClass< AIesAttenuatedLight >)
Definition AIesAttenuatedLight.h:32
TransientVisualElement cook(const CookingContext &ctx, const PreCookReport &report) const override
Definition AIesAttenuatedLight.cpp:48
void setIesFile(const Path &iesFile)
Definition AIesAttenuatedLight.cpp:146
void setSource(const std::shared_ptr< ALight > &source)
Definition AIesAttenuatedLight.cpp:141
PreCookReport preCook(const CookingContext &ctx) const override
Cooking supplemental data before cook(). This method allows user to specify additional configurations...
Definition AIesAttenuatedLight.cpp:23
Information about the world being cooked.
Definition CookingContext.h:24
General path representation. Does not check whether the target actually exists (e....
Definition Path.h:21
Definition PreCookReport.h:13
An general identifier that points to some resource. This is the most general form of a resource ident...
Definition ResourceIdentifier.h:20
SDL binding type for a canonical SDL resource class.
Definition TSdlOwnerClass.h:23
A value that points to a SDL resource.
Definition TSdlReference.h:21
A field class that binds a resource identifier member. Though the member type that is binded by defau...
Definition TSdlResourceIdentifier.h:28
TSdlValue & description(std::string descriptionStr)
Definition TSdlValue.ipp:95
TSdlValue & required()
Definition TSdlValue.ipp:117
A group of cooked data that represent the visible part of the scene at a specific time....
Definition TransientVisualElement.h:19
The root for all renderer implementations.
Definition EEngineProject.h:6