jbikker/lighthouse2

Error building the pbrtdemoapp

rgba32 opened this issue · 1 comments

Camera has no position or direction members...

5>D:\lighthouse2\apps\pbrtdemoapp\main.cpp(189,51): error C2039: 'position': is not a member of 'lighthouse2::Camera'
5>D:\lighthouse2\lib\RenderSystem\camera.h(25): message : see declaration of 'lighthouse2::Camera'
5>D:\lighthouse2\apps\pbrtdemoapp\main.cpp(190,52): error C2039: 'direction': is not a member of 'lighthouse2::Camera'
5>D:\lighthouse2\lib\RenderSystem\camera.h(25): message : see declaration of 'lighthouse2::Camera'
5>Done building project "pbrtdemoapp.vcxproj" -- FAILED.

change code use camera transform.
float3 camPos = renderer->GetCamera()->transform.GetTranslation();;
float3 camDir = renderer->GetCamera()->transform.GetForward();