55 MarchData() =
default;
56 MarchData(MarchData&& other) =
default;
57 MarchData(
const MarchData& other)
58 : neighs(other.neighs.clone())
59 , intersections(other.intersections.clone())
60 , previousIdx(other.previousIdx) {
101 const ICamera& camera)
override;
121 const Float surfaceLevel,
122 const bool occlusion)
const;
124 struct IntersectContext {
142 const IntersectContext& context,
143 const bool occlusion)
const;
146 Rgba getSurfaceColor(MarchData& data,
#define SPH_ASSERT(x,...)
uint32_t Size
Integral type used to index arrays (by default).
double Float
Precision used withing the code. Use Float instead of float or double where precision is important.
#define NAMESPACE_SPH_END
Interface defining a camera or view, used by a renderer.
Interface for objects assigning colors to particles.
Base class for renderers based on raytracing.
SharedPtr< IScheduler > scheduler
Wrapper of type value of which may or may not be present.
Array< Size > materialIDs
Material ID for each particle.
Array< Size > flags
Particle indices.
bool doEmission
If true, the colors are used for emission, otherwise for diffuse reflectance.
Array< Vector > r
Particle positions.
Array< Vector > uvws
Mapping coordinates. May be empty.
Array< Float > v
Particle volume (=mass/density)
virtual void initialize(const Storage &storage, const IColorizer &colorizer, const ICamera &camera) override
Prepares the objects for rendering and updates its data.
RayMarcher(SharedPtr< IScheduler > scheduler, const GuiSettings &settings)
virtual bool isInitialized() const override
Checks if the renderer has been initialized.
Array< SharedPtr< Texture > > textures
Vector dirToSun
Direction to sun; sun is assumed to be a point light source.
bool renderSpheres
Render surface of spheres instead of an isosurface.
AutoPtr< IBrdf > brdf
BRDF used to get the surface reflectance.
bool shadows
Cast shadows.
Array< Rgba > colors
Particle colors.
Container storing all quantities used within the simulations.
Ray given by origin and target point.
Parameters of the rendered image.