Lightmetrica
0.0.1.50dbee3 (yosakoi)
|
Public Member Functions | |
LM_COMPONENT_IMPL_DEF ("stratified") | |
virtual void | GenerateSamples (Math::Vec2i &pixelPos) override |
virtual bool | Configure (const ConfigNode &node, const Assets &assets) override |
virtual Sampler * | Clone () const override |
virtual void | SetSeed (unsigned int seed) override |
virtual Math::Float | Next () override |
virtual unsigned int | NextUInt () override |
virtual Math::Vec2 | NextVec2 () override |
virtual Random * | Rng () override |
Public Member Functions inherited from ConfigurableSampler | |
LM_COMPONENT_INTERFACE_DEF ("configurablesampler") | |
Public Member Functions inherited from Sampler | |
LM_PUBLIC_API void | SetSeedWithCurrentTime () |
Public Member Functions inherited from Component | |
virtual std::string | ComponentInterfaceTypeName () const =0 |
virtual std::string | ComponentImplTypeName () const =0 |
Public Member Functions inherited from SIMDAlignedType | |
void * | operator new (std::size_t size) throw (std::bad_alloc) |
void | operator delete (void *p) |
Stratified sampler. Implements stratified sampling for samples for cameras.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Configure. Configure and initialize the sampler by the XML elements given by #node.
node | XML node for the configuration. |
assets | Asset manager. |
true | Succeeded to configure. |
false | Failed to configure. |
Implements ConfigurableSampler.
|
inlineoverridevirtual |
Generate samples for a pixel. This function must be called before sampling process of a pixel.
pixelPos | Pixel position. |
Implements CameraSampler.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Set seed and initialize internal state. This function is valid only for
seed | Seed. |
Implements Sampler.