![]() |
![]() |
![]() |
PrtEngine.PrtEngine Constructor |
Language: |
Initializes a new instance of the PrtEngine class.
Visual Basic .NET Public Sub New( _
ByVal mesh As Mesh, _
ByVal extractUvs As Boolean, _
ByVal blockerMesh As Mesh _
)C# public PrtEngine(
Mesh mesh,
bool extractUvs,
Mesh blockerMesh
);Managed C++ public: PrtEngine(
Mesh *mesh,
bool extractUvs,
Mesh *blockerMesh
);JScript .NET public function PrtEngine(
mesh : Mesh,
extractUvs : boolean,
blockerMesh : Mesh
);
mesh Microsoft.DirectX.Direct3D.Mesh. An input Mesh object that models the 3-D scene. This mesh must have an attribute table in which vertices are in a unique attribute. extractUvs System.Boolean. Set to true if textures will be used to store albedos or precomputed radiance transfer (PRT) vectors; otherwise, false. blockerMesh Microsoft.DirectX.Direct3D.Mesh. A Mesh object that blocks the 3-D scene.
The PrtEngine class efficiently generates precomputed radiance transfer (PRT) simulations of a 3-D scene.
Use PrtEngine.ConcatenateMeshes to transform a scene to new coordinates.
Exceptions
InvalidCallException The method call is invalid. For example, a method's parameter might contain an invalid value. OutOfMemoryException Microsoft® Direct3D® could not allocate sufficient memory to complete the call.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center