History

Moved cascade frustum pre-computation to single ShadowSetup job

Olivier Prat committed 8 years ago

Commit 3fa2bab1 parent f344e443 files · +126 −47Browse files

Showing the changes to scripts/developer (1 of 3 files). Show all

Unified · Split

scripts/developer/utilities/render/shadow.qml+21−20
@@ -18,6 +18,7 @@ Column { · 17 unmodified lines
1818 id: root
1919 spacing: 8
2020 property var viewConfig: Render.getConfig("RenderMainView.DrawViewFrustum");
21+ property var shadowConfig : Render.getConfig("RenderMainView.ShadowSetup");
2122 property var shadow0Config: Render.getConfig("RenderMainView.DrawShadowFrustum0");
2223 property var shadow1Config: Render.getConfig("RenderMainView.DrawShadowFrustum1");
2324 property var shadow2Config: Render.getConfig("RenderMainView.DrawShadowFrustum2");
@@ -80,34 +81,34 @@ Column { · 56 unmodified lines
8081 }
8182 }
8283 ConfigSlider {
83− label: qsTr("Cascade 0 fixed bias")
84+ label: qsTr("Cascade 0 constant bias")
8485 integral: false
85− config: Render.getConfig("RenderMainView.ShadowCascadeSetup0")
86− property: "fixedBias"
86+ config: shadowConfig
87+ property: "constantBias0"
8788 max: 1.0
8889 min: 0.0
8990 }
9091 ConfigSlider {
91− label: qsTr("Cascade 1 fixed bias")
92+ label: qsTr("Cascade 1 constant bias")
9293 integral: false
93− config: Render.getConfig("RenderMainView.ShadowCascadeSetup1")
94− property: "fixedBias"
94+ config: shadowConfig
95+ property: "constantBias1"
9596 max: 1.0
9697 min: 0.0
9798 }
9899 ConfigSlider {
99− label: qsTr("Cascade 2 fixed bias")
100+ label: qsTr("Cascade 2 constant bias")
100101 integral: false
101− config: Render.getConfig("RenderMainView.ShadowCascadeSetup2")
102− property: "fixedBias"
102+ config: shadowConfig
103+ property: "constantBias2"
103104 max: 1.0
104105 min: 0.0
105106 }
106107 ConfigSlider {
107− label: qsTr("Cascade 3 fixed bias")
108+ label: qsTr("Cascade 3 constant bias")
108109 integral: false
109− config: Render.getConfig("RenderMainView.ShadowCascadeSetup3")
110− property: "fixedBias"
110+ config: shadowConfig
111+ property: "constantBias3"
111112 max: 1.0
112113 min: 0.0
113114 }
@@ -115,32 +116,32 @@ Column { · 1 unmodified line
115116 ConfigSlider {
116117 label: qsTr("Cascade 0 slope bias")
117118 integral: false
118− config: Render.getConfig("RenderMainView.ShadowCascadeSetup0")
119− property: "slopeBias"
119+ config: shadowConfig
120+ property: "slopeBias0"
120121 max: 1.0
121122 min: 0.0
122123 }
123124 ConfigSlider {
124125 label: qsTr("Cascade 1 slope bias")
125126 integral: false
126− config: Render.getConfig("RenderMainView.ShadowCascadeSetup1")
127− property: "slopeBias"
127+ config: shadowConfig
128+ property: "slopeBias1"
128129 max: 1.0
129130 min: 0.0
130131 }
131132 ConfigSlider {
132133 label: qsTr("Cascade 2 slope bias")
133134 integral: false
134− config: Render.getConfig("RenderMainView.ShadowCascadeSetup2")
135− property: "slopeBias"
135+ config: shadowConfig
136+ property: "slopeBias2"
136137 max: 1.0
137138 min: 0.0
138139 }
139140 ConfigSlider {
140141 label: qsTr("Cascade 3 slope bias")
141142 integral: false
142− config: Render.getConfig("RenderMainView.ShadowCascadeSetup3")
143− property: "slopeBias"
143+ config: shadowConfig
144+ property: "slopeBias3"
144145 max: 1.0
145146 min: 0.0
146147 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t