PolyFEM
|
Classes | |
class | FragmentAttributes |
class | FrameBufferAttributes |
struct | Material |
class | Program |
class | UniformAttributes |
class | VertexAttributes |
Functions | |
std::vector< uint8_t > | render (const Eigen::MatrixXd &vertices, const Eigen::MatrixXi &faces, const Eigen::MatrixXi &faces_id, int width, int height, const Eigen::Vector3d &camera_position, const double camera_fov, const double camera_near, const double camera_far, const bool is_perspective, const Eigen::Vector3d &lookat, const Eigen::Vector3d &up, const Eigen::Vector3d &ambient_light, const std::vector< std::pair< Eigen::MatrixXd, Eigen::MatrixXd > > &lights, std::vector< Material > &materials) |
std::vector< uint8_t > polyfem::renderer::render | ( | const Eigen::MatrixXd & | vertices, |
const Eigen::MatrixXi & | faces, | ||
const Eigen::MatrixXi & | faces_id, | ||
int | width, | ||
int | height, | ||
const Eigen::Vector3d & | camera_position, | ||
const double | camera_fov, | ||
const double | camera_near, | ||
const double | camera_far, | ||
const bool | is_perspective, | ||
const Eigen::Vector3d & | lookat, | ||
const Eigen::Vector3d & | up, | ||
const Eigen::Vector3d & | ambient_light, | ||
const std::vector< std::pair< Eigen::MatrixXd, Eigen::MatrixXd > > & | lights, | ||
std::vector< Material > & | materials | ||
) |
Definition at line 155 of file raster.cpp.
References polyfem::renderer::Program::BlendingShader, polyfem::renderer::VertexAttributes::color, polyfem::renderer::FragmentAttributes::color, polyfem::renderer::FragmentAttributes::depth, polyfem::renderer::FrameBufferAttributes::depth, polyfem::renderer::Material::diffuse_color, faces, polyfem::renderer::Program::FragmentShader, polyfem::renderer::UniformAttributes::M, polyfem::renderer::UniformAttributes::M_cam, polyfem::renderer::UniformAttributes::M_orth, polyfem::renderer::VertexAttributes::material, polyfem::renderer::VertexAttributes::normal, polyfem::renderer::VertexAttributes::position, polyfem::renderer::Material::specular_color, polyfem::renderer::Material::specular_exponent, and polyfem::renderer::Program::VertexShader.