Skip to content

Commit

Permalink
feat: turn on backface culling for Embree
Browse files Browse the repository at this point in the history
We need this in order to support lights which can not be seen from behind
  • Loading branch information
Latios96 committed Dec 8, 2024
1 parent 5bb74c7 commit 1828707
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions conanfile.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ spdlog:header_only=True
fakeit:integration=catch
boost:without_stacktrace=True
USD:with_imaging=True
embree3:backface_culling=True

[imports]
bin,*.dll->./bin
Expand Down
4 changes: 2 additions & 2 deletions src/crayg/tests/TestEmbreeSceneIntersector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
namespace crayg {

const Ray RAY_WITH_NO_INTERSECTION = Ray({0, 5, 0}, {1, 0, 0});
const Ray RAY_WITH_TRIANGLE_INTERSECTION = Ray({0.75f, 1, 1.5f}, {0, -1, 0});
const Ray RAY_WITH_SUBD_MESH_INTERSECTION = Ray({0.1f, 1, 0}, {0, -1, 0});
const Ray RAY_WITH_TRIANGLE_INTERSECTION = Ray({0.75f, -1, 1.5f}, {0, 1, 0});
const Ray RAY_WITH_SUBD_MESH_INTERSECTION = Ray({0.1f, -1, 0}, {0, 1, 0});
const Ray RAY_WITH_SPHERE_INTERSECTION = Ray({-2, 2, 0}, {1, 0, 0});
const Ray RAY_ON_TRIANGLE = Ray({0.75f, 0, 1.5f}, {0, 1, 0});

Expand Down

0 comments on commit 1828707

Please sign in to comment.