diff --git a/src/bonsai/bonsai/bim/data/assets/shading_styles.json b/src/bonsai/bonsai/bim/data/assets/shading_styles.json index 641b9052b6..602b8a652e 100644 --- a/src/bonsai/bonsai/bim/data/assets/shading_styles.json +++ b/src/bonsai/bonsai/bim/data/assets/shading_styles.json @@ -499,6 +499,10 @@ 0.05087608844041824, 0.05087608844041824 ], + "scene.eevee.use_shadows": true, + "scene.eevee.shadow_ray_count": 1, + "scene.eevee.shadow_step_count": 6, + "scene.eevee.shadow_resolution_scale": 1.0, "scene.render.bake_bias": 0.0010000000474974513, "scene.render.bake_margin": 16, "scene.render.bake_margin_type": "ADJACENT_FACES", diff --git a/src/bonsai/bonsai/bim/module/drawing/prop.py b/src/bonsai/bonsai/bim/module/drawing/prop.py index 80a04706ab..c4e9d37067 100644 --- a/src/bonsai/bonsai/bim/module/drawing/prop.py +++ b/src/bonsai/bonsai/bim/module/drawing/prop.py @@ -382,6 +382,10 @@ class DrawingStyle(PropertyGroup): class RasterStyleProperty(enum.Enum): # EVAL_PROP_ props will be evaluated explicitly EVAL_PROP_WORLD_COLOR = "bpy.data.worlds[0].color" + EVAL_PROP_EEVEE_USE_SHADOWS = "scene.eevee.use_shadows" + EVAL_PROP_EEVEE_SHADOW_RAY_COUNT = "scene.eevee.shadow_ray_count" + EVAL_PROP_EEVEE_SHADOW_STEP_COUNT = "scene.eevee.shadow_step_count" + EVAL_PROP_EEVEE_SHADOW_RES_SCALE = "scene.eevee.shadow_resolution_scale" # those props attributes used as a source for shading style properties RENDER = "scene.render"