Skip to content

Commit c8c5d04

Browse files
committed
chore: run fantomas
1 parent bdc296c commit c8c5d04

2 files changed

Lines changed: 15 additions & 4 deletions

File tree

src/Mibo.Raylib/Graphics3D/Pipelines/ClusteredForwardPipeline.fs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ type private PipelineContext
186186
locPointLightRadius[i] <-
187187
Raylib.GetShaderLocation(forwardShader, $"pointLightRadius[{i}]")
188188

189-
locSpotLightCount <- Raylib.GetShaderLocation(forwardShader, "spotLightCount")
189+
locSpotLightCount <-
190+
Raylib.GetShaderLocation(forwardShader, "spotLightCount")
190191

191192
for i = 0 to maxSpotLights - 1 do
192193
locSpotLightPos[i] <-
@@ -878,7 +879,9 @@ type ClusteredForwardPipeline
878879

879880
interface IRenderPipeline3D with
880881
member _.Initialize() =
881-
forwardShader <- Shaders.loadForwardShader maxPt maxSp shadowCfg.CascadeCount
882+
forwardShader <-
883+
Shaders.loadForwardShader maxPt maxSp shadowCfg.CascadeCount
884+
882885
shadowShader <- Shaders.loadShadowShader()
883886
postProcessShader <- Shaders.loadPostProcessShader()
884887

src/Mibo.Raylib/Graphics3D/Pipelines/Shaders.fs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,11 @@ void main()
9494
}
9595
"""
9696

97-
let forwardFragmentFmt (maxPointLights: int) (maxSpotLights: int) (cascadeCount: int) =
97+
let forwardFragmentFmt
98+
(maxPointLights: int)
99+
(maxSpotLights: int)
100+
(cascadeCount: int)
101+
=
98102
let cascadeArray = String.init cascadeCount (fun _ -> "")
99103

100104
let shadowMapSamplers =
@@ -383,7 +387,11 @@ void main()
383387
/// Loads the built-in forward PBR vertex + fragment shader.
384388
/// The fragment shader is generated with the specified light array sizes and cascade count.
385389
/// </summary>
386-
let loadForwardShader (maxPointLights: int) (maxSpotLights: int) (cascadeCount: int) : Shader =
390+
let loadForwardShader
391+
(maxPointLights: int)
392+
(maxSpotLights: int)
393+
(cascadeCount: int)
394+
: Shader =
387395
Raylib.LoadShaderFromMemory(
388396
forwardVertex,
389397
forwardFragmentFmt maxPointLights maxSpotLights cascadeCount

0 commit comments

Comments
 (0)