Skip to content

Commit 3e0135b

Browse files
committed
Added direct setting of LookDirection.
1 parent 28fa021 commit 3e0135b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/vsg/animation/CameraSampler.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,12 +219,15 @@ void CameraSampler::apply(dmat4Value& matrix)
219219

220220
void CameraSampler::apply(LookAt& lookAt)
221221
{
222+
lookAt.origin = origin;
222223
lookAt.set(transform());
223224
}
224225

225226
void CameraSampler::apply(LookDirection& lookDirection)
226227
{
227-
lookDirection.set(transform());
228+
lookDirection.origin = origin;
229+
lookDirection.position = origin;
230+
lookDirection.rotation = rotation;
228231
}
229232

230233
void CameraSampler::apply(Perspective& perspective)

0 commit comments

Comments
 (0)