mirror of
https://forge.apps.education.fr/blender-edutech/ropy.git
synced 2024-01-27 08:23:20 +01:00
Ajout du décor (scatter)
This commit is contained in:
parent
8b76610333
commit
28ce88abfe
BIN
ropy-33.blend
BIN
ropy-33.blend
Binary file not shown.
14
rp_about.py
14
rp_about.py
@ -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)
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user