134 bool reshape(
size_t resolutionThetaLight,
size_t resolutionPhiLight,
135 size_t resolutionThetaView,
size_t resolutionPhiView );
147 size_t resolutionThetaView,
size_t resolutionPhiView,
148 const std::vector<float>& samples );
163 size_t resolutionPhiLight,
size_t resolutionThetaView,
164 size_t resolutionPhiView );
171 using RtSurfaceMaterial::RtSurfaceMaterial;
The geometry representation used by the collision detection engine.
Basic implementation of any structure where bodies are linked/constrained together in a well defined ...
Opaque surface material reflecting the light according to an explicitly specified bidirectional refle...
static RtBrdfExplicitMaterial get(const agxSDK::LinkedStructure *linkedStructure)
RtBrdfExplicitMaterial(RtMaterialInstance instance)
static RtBrdfExplicitMaterial get(const agxTerrain::Terrain *terrain)
void store(agxStream::OutputArchive &out) const
void restore(agxStream::InputArchive &in)
static RtBrdfExplicitMaterial get(const agxCollide::Shape *shape)
bool reshape(size_t resolutionThetaLight, size_t resolutionPhiLight, size_t resolutionThetaView, size_t resolutionPhiView)
Attempt to reshape the sample array to the specified dimensions.
size_t getResolutionPhiView() const
size_t getResolutionThetaLight() const
size_t getResolutionThetaView() const
static RtBrdfExplicitMaterial get(const agxCollide::Geometry *geometry)
static RtBrdfExplicitMaterial get(const agxWire::Wire *wire)
size_t getResolutionPhiLight() const
static RtBrdfExplicitMaterial get(const agx::RigidBody *rb)
std::vector< float > getSamples() const
bool setSamplesFromImageFile(const agx::String &filename, size_t resolutionThetaLight, size_t resolutionPhiLight, size_t resolutionThetaView, size_t resolutionPhiView)
Attempt to read the BRDF samples from the specified luminance image file.
RtBrdfExplicitMaterial setSamples(size_t resolutionThetaLight, size_t resolutionPhiLight, size_t resolutionThetaView, size_t resolutionPhiView, const std::vector< float > &samples)
Set the explicit bidirectional reflection distribution function (BRDF) samples.
static RtBrdfExplicitMaterial create()
static RtBrdfExplicitMaterial get(const agxTerrain::TerrainPager *terrainPager)
Surface material of shape instances in the raytrace environment.
Class for writing serialized data in binary format to a stream.
A terrain model based a 3D grid model with overlapping height field that can be deformed by interacti...
Interface and placeholder of controllers/helpers for wires.
The rigid body class, combining a geometric model and a frame of reference.
The agxSensor namespace contains components to model real-time sensors connected to the physics of AG...
Material instance in the raytrace environment, containing handle and type.