| 318 | |
| 319 | |
| 320 | bool |
| 321 | SimpleRenderer::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 | |
| 335 | bool |