@@ -270,9 +270,8 @@ module Camera3D =
270270 /// Convert a raylib <see cref =" T:Raylib_cs.Camera3D " /> to a Mibo <see cref =" T:Mibo.Elmish.Camera " />
271271 /// by computing view and projection matrices.
272272 /// </summary >
273- let fromRaylib ( cam : Raylib_cs.Camera3D ) : Camera = {
274- View =
275- Matrix4x4.CreateLookAt( cam.Position, cam.Target, cam.Up)
273+ let fromRaylib ( cam : Raylib_cs.Camera3D ) : Camera = {
274+ View = Matrix4x4.CreateLookAt( cam.Position, cam.Target, cam.Up)
276275 Projection =
277276 match cam.Projection with
278277 | CameraProjection.Perspective ->
@@ -295,53 +294,61 @@ module Camera3D =
295294 /// Create a rendering config from a raylib camera.
296295 /// Defaults: fullscreen, no clear, all post-process passes.
297296 /// </summary >
298- let render ( camera : Raylib_cs.Camera3D ) : Camera3DConfig = {
297+ let render ( camera : Raylib_cs.Camera3D ) : Camera3DConfig = {
299298 Camera = camera
300299 Viewport = ValueNone
301300 ClearColor = ValueNone
302301 PostProcessPasses = ValueNone
303302 }
304303
305304 /// <summary >Set viewport in normalized screen coordinates (0-1).</summary >
306- let withViewport ( viewport : Raylib_cs.Rectangle ) ( config : Camera3DConfig ) =
307- { config with Viewport = ValueSome viewport }
305+ let withViewport ( viewport : Raylib_cs.Rectangle ) ( config : Camera3DConfig ) = {
306+ config with
307+ Viewport = ValueSome viewport
308+ }
308309
309310 /// <summary >Clear with this color before rendering.</summary >
310- let withClear ( color : Color ) ( config : Camera3DConfig ) =
311- { config with ClearColor = ValueSome color }
311+ let withClear ( color : Color ) ( config : Camera3DConfig ) = {
312+ config with
313+ ClearColor = ValueSome color
314+ }
312315
313316 /// <summary >Use only specific post-process pass indices.</summary >
314- let withPostProcess ( passes : int []) ( config : Camera3DConfig ) =
315- { config with PostProcessPasses = ValueSome passes }
317+ let withPostProcess ( passes : int []) ( config : Camera3DConfig ) = {
318+ config with
319+ PostProcessPasses = ValueSome passes
320+ }
316321
317322 /// <summary >Disable post-processing for this camera.</summary >
318- let withoutPostProcess ( config : Camera3DConfig ) =
319- { config with PostProcessPasses = ValueSome [||] }
323+ let withoutPostProcess ( config : Camera3DConfig ) = {
324+ config with
325+ PostProcessPasses = ValueSome [||]
326+ }
320327
321328 // ── Convenience Constructors ──
322329
323330 /// <summary >Split-screen left half. Clears with given color.</summary >
324331 let splitScreenLeft ( camera : Raylib_cs.Camera3D ) ( clearColor : Color ) =
325332 render camera
326- |> withViewport ( Raylib_ cs.Rectangle( 0.0 f, 0.0 f, 0.5 f, 1.0 f))
333+ |> withViewport( Raylib_ cs.Rectangle( 0.0 f, 0.0 f, 0.5 f, 1.0 f))
327334 |> withClear clearColor
328335
329336 /// <summary >Split-screen right half. Clears with given color.</summary >
330337 let splitScreenRight ( camera : Raylib_cs.Camera3D ) ( clearColor : Color ) =
331338 render camera
332- |> withViewport ( Raylib_ cs.Rectangle( 0.5 f, 0.0 f, 0.5 f, 1.0 f))
339+ |> withViewport( Raylib_ cs.Rectangle( 0.5 f, 0.0 f, 0.5 f, 1.0 f))
333340 |> withClear clearColor
334341
335342 /// <summary >Split-screen top half. Clears with given color.</summary >
336343 let splitScreenTop ( camera : Raylib_cs.Camera3D ) ( clearColor : Color ) =
337344 render camera
338- |> withViewport ( Raylib_ cs.Rectangle( 0.0 f, 0.0 f, 1.0 f, 0.5 f))
345+ |> withViewport( Raylib_ cs.Rectangle( 0.0 f, 0.0 f, 1.0 f, 0.5 f))
339346 |> withClear clearColor
340347
341348 /// <summary >Split-screen bottom half. Clears with given color.</summary >
342349 let splitScreenBottom ( camera : Raylib_cs.Camera3D ) ( clearColor : Color ) =
343350 render camera
344- |> withViewport ( Raylib_ cs.Rectangle( 0.0 f, 0.5 f, 1.0 f, 0.5 f))
351+ |> withViewport( Raylib_ cs.Rectangle( 0.0 f, 0.5 f, 1.0 f, 0.5 f))
345352 |> withClear clearColor
346353
347354 /// <summary >Picture-in-picture overlay. No post-process by default.</summary >
0 commit comments