Skip to content

Commit

Permalink
Merge pull request #5422 from johnhaddon/lentilScreenWindowFix
Browse files Browse the repository at this point in the history
Arnold CameraAlgo : Fix screen window for Lentil cameras
  • Loading branch information
johnhaddon authored Aug 15, 2023
2 parents 6da2114 + cc739d9 commit f5c9997
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
1.2.10.x (relative to 1.2.10.1)
========

Fixes
-----

- Arnold : Fixed screen window export for Lentil cameras.

1.2.10.1 (relative to 1.2.10.0)
========
Expand Down
2 changes: 1 addition & 1 deletion src/IECoreArnold/CameraAlgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ Imath::Box2f screenWindow( const IECoreScene::Camera *camera )
{
Imath::Box2f result = camera->frustum();

if( camera->getProjection() == "perspective" )
if( camera->getProjection() == "perspective" || camera->getProjection() == "lentil_camera" )
{
// Normalise so that Arnold's NDC space goes from 0-1 across the aperture.
// This is helpful when using Arnold `uv_remap` shaders.
Expand Down

0 comments on commit f5c9997

Please sign in to comment.