1 // Copyright 2021 Intel Corporation 2 // SPDX-License-Identifier: Apache-2.0 3 4 #pragma once 5 6 // ospray stuff 7 #include "./Group.h" 8 // embree readParams(ManagedObject & obj)9#include "embree3/rtcore.h" 10 11 namespace ospray { 12 13 struct OSPRAY_SDK_INTERFACE MotionTransform 14 { 15 void readParams(ManagedObject &); 16 void setEmbreeTransform(RTCGeometry) const; 17 affine3f transform{one}; 18 bool motionBlur{false}; 19 bool quaternion{false}; 20 21 private: 22 Ref<const DataT<affine3f>> transforms; 23 std::vector<RTCQuaternionDecomposition> quaternions; 24 range1f time{0.0f, 1.0f}; 25 }; 26 27 } // namespace ospray 28