Peter

Results 5 comments of Peter

Would something like this work? ```rust pub fn ndc_to_world(&self, camera_transform: &GlobalTransform, ndc: Vec3) -> Option { let ndc_to_world: Mat4 = camera_transform.compute_matrix() * self.computed.projection_matrix.inverse(); let world_coords = ndc_to_world.project_point3(ndc); if !world_coords.is_nan() {...

I modified my code and created a repo with it. It's implemented as an trait for the `Camera` struct. https://github.com/petereichinger/bevy_trafo

@mysteryDate could you show me examples for the other highlighting and how you want it done?

String highlighting is already working with the newest version. Looking at the other stuff atm.

If anyone wants to see the code (i commented out the `pre_cmd`) https://github.com/petereichinger/videoplayer . I currently run `templ generate` using cmd as a workaround. pre_cmd would be preferable