added eigen, dropping my own for the speed potential. its still kinda broken, but its faster.

This commit is contained in:
yggdrasil75
2026-01-26 21:06:53 -05:00
parent c3916d146a
commit e0764318b4
2 changed files with 16 additions and 19 deletions

View File

@@ -34,7 +34,7 @@ int main() {
Eigen::Vector3f greenColor(0.0f, 1.0f, 0.0f); // green
// Add points on sphere surface (simplified representation)
for (int i = 0; i < 1000; ++i) {
for (int i = 0; i < 10000; ++i) {
// Spherical coordinates
float u = static_cast<float>(rand()) / RAND_MAX;
float v = static_cast<float>(rand()) / RAND_MAX;
@@ -59,7 +59,7 @@ int main() {
std::cout << "Added " << pointCount << " points to the green sphere." << std::endl;
// Set camera parameters
PointType cameraPos(0.0f, 0.0f, 5.0f); // camera position
PointType cameraPos(0.0f, 0.0f, 3.0f); // camera position
PointType lookDir(0.0f, 0.0f, -1.0f); // looking at sphere
PointType upDir(0.0f, 1.0f, 0.0f); // up direction
PointType rightDir(1.0f, 0.0f, 0.0f); // right direction