We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a23a0f commit dc430a5Copy full SHA for dc430a5
examples_tests/22.RaytracedAO/main.cpp
@@ -175,6 +175,8 @@ int main(int argc, char** argv)
175
176
struct SensorData
177
{
178
+ int32_t width = 0u;
179
+ int32_t height = 0u;
180
bool rightHandedCamera = true;
181
uint32_t samplesNeeded = 0u;
182
float moveSpeed = core::nan<float>();
@@ -271,6 +273,8 @@ int main(int argc, char** argv)
271
273
float realFoVDegrees;
272
274
auto width = film.cropWidth;
275
auto height = film.cropHeight;
276
+ outSensorData.width = width;
277
+ outSensorData.height = height;
278
float aspectRatio = float(width) / float(height);
279
auto convertFromXFoV = [=](float fov) -> float
280
0 commit comments