Allow more control over cloud shadows
This commit is contained in:
+4
-3
@@ -28,6 +28,7 @@ import Shader.Data
|
||||
createLightMap ::
|
||||
Camera ->
|
||||
Config ->
|
||||
ShadowRendering ->
|
||||
-- | number of walls
|
||||
GLsizei ->
|
||||
-- | number of silhoutte lines to draw
|
||||
@@ -41,12 +42,12 @@ createLightMap ::
|
||||
[(Point3, Float, Point3)] -> -- Lights
|
||||
RenderData ->
|
||||
IO ()
|
||||
createLightMap cam cfig = case shadrendertype of
|
||||
createLightMap cam cfig shadrendertype = case shadrendertype of
|
||||
NoShadows -> const . const . const renderLightingNoShadows
|
||||
NoLighting -> const . const . const . const . const . const renderFlatLighting
|
||||
_ -> renderShadows cam cfig shadrendertype
|
||||
where
|
||||
shadrendertype = cfig ^. gr_shadow_rendering
|
||||
-- where
|
||||
-- shadrendertype = cfig ^. gr_shadow_rendering
|
||||
|
||||
renderLightingNoShadows ::
|
||||
TO ->
|
||||
|
||||
Reference in New Issue
Block a user