Skip to content

Commit dc430a5

Browse files
committed
added width/height to extracted sensor data
1 parent 1a23a0f commit dc430a5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples_tests/22.RaytracedAO/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ int main(int argc, char** argv)
175175

176176
struct SensorData
177177
{
178+
int32_t width = 0u;
179+
int32_t height = 0u;
178180
bool rightHandedCamera = true;
179181
uint32_t samplesNeeded = 0u;
180182
float moveSpeed = core::nan<float>();
@@ -271,6 +273,8 @@ int main(int argc, char** argv)
271273
float realFoVDegrees;
272274
auto width = film.cropWidth;
273275
auto height = film.cropHeight;
276+
outSensorData.width = width;
277+
outSensorData.height = height;
274278
float aspectRatio = float(width) / float(height);
275279
auto convertFromXFoV = [=](float fov) -> float
276280
{

0 commit comments

Comments
 (0)