Ajout du décor (scatter)

This commit is contained in:
Philippe Roy 2023-12-11 04:25:00 +01:00
parent 8b76610333
commit 28ce88abfe
3 changed files with 14 additions and 4 deletions

Binary file not shown.

View File

@ -136,7 +136,7 @@ def open_anim():
def hl(cont):
# Focus sourie
# Focus souris
if cont.sensors['MO'].status == JUST_ACTIVATED :
obj = cont.owner
name=obj.name[:-7]
@ -149,7 +149,7 @@ def hl(cont):
if name == "About_link-upbge":
scene.objects["About_text-upbge"].color = color_link_hl
# Perte du focus sourie
# Perte du focus souris
if cont.sensors['MO'].status == JUST_RELEASED :
obj = cont.owner
name=obj.name[:-7]
@ -425,6 +425,8 @@ def quality_apply(quality, start_flag=False):
eevee.use_volumetric_shadows = False
eevee.shadow_cascade_size='64'
eevee.shadow_cube_size='64'
scene.objects['terrain-scatter.001'].setVisible(False,True)
scene.objects['terrain-scatter.002'].setVisible(False,True)
# Basse
if quality== 1:
@ -439,6 +441,8 @@ def quality_apply(quality, start_flag=False):
eevee.use_volumetric_shadows = False
eevee.shadow_cascade_size='1024'
eevee.shadow_cube_size='512'
scene.objects['terrain-scatter.001'].setVisible(False,True)
scene.objects['terrain-scatter.002'].setVisible(False,True)
# Moyenne
if quality== 2:
@ -453,6 +457,8 @@ def quality_apply(quality, start_flag=False):
eevee.use_volumetric_shadows = False
eevee.shadow_cascade_size='1024'
eevee.shadow_cube_size='512'
scene.objects['terrain-scatter.001'].setVisible(True,True)
scene.objects['terrain-scatter.002'].setVisible(True,True)
# Haute
if quality== 3:
@ -467,6 +473,8 @@ def quality_apply(quality, start_flag=False):
eevee.use_volumetric_shadows = False
eevee.shadow_cascade_size='1024'
eevee.shadow_cube_size='512'
scene.objects['terrain-scatter.001'].setVisible(True,True)
scene.objects['terrain-scatter.002'].setVisible(True,True)
# Épique
if quality== 4:
@ -481,3 +489,5 @@ def quality_apply(quality, start_flag=False):
eevee.use_volumetric_shadows = True
eevee.shadow_cascade_size='4096'
eevee.shadow_cube_size='4096'
scene.objects['terrain-scatter.001'].setVisible(True,True)
scene.objects['terrain-scatter.002'].setVisible(True,True)

View File

@ -8,8 +8,8 @@
<worldPosition.z>20.22315788269043</worldPosition.z>
</cam>
<screen>
<width>1556</width>
<height>876</height>
<width>1333</width>
<height>749</height>
<quality>4</quality>
</screen>
</config>