MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenShadingLanguage / get_camera_fov

Method get_camera_fov

src/testrender/simplerend.cpp:320–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318
319
320bool
321SimpleRenderer::get_camera_fov (ShaderGlobals *sg, bool derivs, ustring object,
322 TypeDesc type, ustring name, void *val)
323{
324 // N.B. in a real rederer, this may be time-dependent
325 if (type == TypeDesc::TypeFloat) {
326 ((float *)val)[0] = m_fov;
327 if (derivs)
328 memset ((char *)val+type.size(), 0, 2*type.size());
329 return true;
330 }
331 return false;
332}
333
334
335bool

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected