mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Add tests for new light rendered shadows feature
This commit is contained in:
@@ -236,7 +236,6 @@ class BIM_PT_solar(bpy.types.Panel):
|
|||||||
row.operator("bim.move_sun_path_to_3d_cursor")
|
row.operator("bim.move_sun_path_to_3d_cursor")
|
||||||
|
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
# row.prop(props, "display_shadows", icon="SHADING_RENDERED")
|
|
||||||
row.prop(props, "shadow_mode", icon="SHADING_RENDERED", expand=True)
|
row.prop(props, "shadow_mode", icon="SHADING_RENDERED", expand=True)
|
||||||
|
|
||||||
if props.shadow_mode == "SHADING":
|
if props.shadow_mode == "SHADING":
|
||||||
|
|||||||
@@ -170,8 +170,8 @@ class BIM_PT_styles(Panel):
|
|||||||
row.prop(self.props, "reflectance_method")
|
row.prop(self.props, "reflectance_method")
|
||||||
|
|
||||||
if self.props.reflectance_method not in ("PHYSICAL", "NOTDEFINED", "FLAT"):
|
if self.props.reflectance_method not in ("PHYSICAL", "NOTDEFINED", "FLAT"):
|
||||||
self.layout.label(text=f"Supported reflectance methods are:")
|
self.layout.label(text="Supported reflectance methods are:")
|
||||||
self.layout.label(text=f"PHYSICAL / NOTDEFINED / FLAT")
|
self.layout.label(text="PHYSICAL / NOTDEFINED / FLAT")
|
||||||
|
|
||||||
row = self.layout.row(align=True)
|
row = self.layout.row(align=True)
|
||||||
row.label(text="Emissive" if self.props.reflectance_method == "FLAT" else "Diffuse")
|
row.label(text="Emissive" if self.props.reflectance_method == "FLAT" else "Diffuse")
|
||||||
|
|||||||
@@ -44,11 +44,26 @@ Scenario: Display the sun path
|
|||||||
And I set the "Sun Path Size" property to "100.0"
|
And I set the "Sun Path Size" property to "100.0"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: Display shadows
|
Scenario: See no shadows
|
||||||
|
Given an empty IFC project
|
||||||
|
When I look at the "Solar Access / Shadow" panel
|
||||||
|
Then I don't see "Sun Intensity"
|
||||||
|
And I don't see "Shadow Intensity"
|
||||||
|
|
||||||
|
Scenario: Display shaded shadows
|
||||||
Given an empty IFC project
|
Given an empty IFC project
|
||||||
And I look at the "Solar Access / Shadow" panel
|
And I look at the "Solar Access / Shadow" panel
|
||||||
When I click "Display Shadows"
|
When I set the "Shadow Mode" property to "Shaded"
|
||||||
And I set the "Shadow Intensity" property to "1.0"
|
And I set the "Shadow Intensity" property to "1.0"
|
||||||
|
And I don't see "Sun Intensity"
|
||||||
|
Then nothing happens
|
||||||
|
|
||||||
|
Scenario: Display rendered shadows
|
||||||
|
Given an empty IFC project
|
||||||
|
And I look at the "Solar Access / Shadow" panel
|
||||||
|
When I set the "Shadow Mode" property to "Rendered"
|
||||||
|
And I set the "Sun Intensity" property to "1.0"
|
||||||
|
And I don't see "Shadow Intensity"
|
||||||
Then nothing happens
|
Then nothing happens
|
||||||
|
|
||||||
Scenario: View from sun
|
Scenario: View from sun
|
||||||
|
|||||||
Reference in New Issue
Block a user