(&mut self, device: &wgpu::Device)
| 322 | surfaces: surfaces.clone(), |
| 323 | instance_mats: Arc::from([]), |
| 324 | blend_shape_weights: Arc::from([]), |
| 325 | debug_color: None, |
| 326 | skeleton: None, |
| 327 | dense_multimesh: Some(DenseMultiMeshDraw3D { |
| 328 | node_model: *node_model, |
| 329 | instance_scale: *instance_scale, |
| 330 | instances: instances.clone(), |
| 331 | }), |
| 332 | meshlet_override: *meshlet_override, |
| 333 | lod: *lod, |
| 334 | blend: *blend, |
| 335 | cast_shadows: *cast_shadows, |
| 336 | receive_shadows: *receive_shadows, |
| 337 | }, |
| 338 | })) |
| 339 | } |
| 340 | |
| 341 | #[inline] |
| 342 | fn camera_stream_uses_render_target(stream: &CameraStreamState) -> bool { |
| 343 | match &stream.source { |
| 344 | CameraStreamSourceState::Webcam { texture, .. } => stream.output_texture != *texture, |
| 345 | _ => true, |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | fn camera_stream_lighting_3d(lighting: &CameraStreamLighting3DState) -> Lighting3DState { |
| 350 | Lighting3DState { |
| 351 | frame_time_seconds: 0.0, |
| 352 | frame_delta_seconds: 0.0, |
| 353 | frame_index: 0, |
| 354 | ambient_light: lighting.ambient_light, |
| 355 | sky: lighting.sky.clone(), |
| 356 | sky_time_seconds: 0.0, |
| 357 | ray_lights: lighting.ray_lights, |
| 358 | point_lights: lighting.point_lights, |
| 359 | spot_lights: lighting.spot_lights, |
| 360 | } |
| 361 | } |
no test coverage detected