MCPcopy Create free account
hub / github.com/RenderKit/embree / dolly

Method dolly

tutorials/common/tutorial/camera.h:116–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 }
115
116 void dolly (float ds)
117 {
118 float dollySpeed = 0.01f;
119 float k = powf((1.0f-dollySpeed), ds);
120 from += length(to-from) * (1-k) * normalize(to-from);
121 }
122
123 public:
124 Vec3fa from; //!< position of camera

Callers 1

motionFuncMethod · 0.80

Calls 2

lengthFunction · 0.50
normalizeFunction · 0.50

Tested by

no test coverage detected