relief map support, small refactoring, shadow bias now based on geometry normal

This commit is contained in:
2023-03-02 11:46:52 +03:00
parent adf8c4d7f0
commit 64eee9e607
26 changed files with 465 additions and 174 deletions

View File

@@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>360</width>
<height>536</height>
<width>499</width>
<height>697</height>
</rect>
</property>
<property name="windowTitle">
@@ -134,6 +134,120 @@
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widgetSegmentsW" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_11">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_5">
<property name="text">
<string>Segments W:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinSegmentsW">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widgetSegmentsL" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_12">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_11">
<property name="text">
<string>Segments L:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinSegmentsL">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widgetSegmentsH" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_13">
<property name="leftMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_12">
<property name="text">
<string>Segments H:</string>
</property>
</widget>
</item>
<item>
<widget class="QSpinBox" name="spinSegmentsH">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>1</number>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QWidget" name="widgetRadius1" native="true">
<layout class="QHBoxLayout" name="horizontalLayout_5">
@@ -437,8 +551,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>330</x>
<y>84</y>
<x>498</x>
<y>109</y>
</hint>
<hint type="destinationlabel">
<x>369</x>
@@ -453,8 +567,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>334</x>
<y>116</y>
<x>498</x>
<y>147</y>
</hint>
<hint type="destinationlabel">
<x>366</x>
@@ -469,8 +583,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>332</x>
<y>144</y>
<x>498</x>
<y>299</y>
</hint>
<hint type="destinationlabel">
<x>370</x>
@@ -485,8 +599,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>334</x>
<y>186</y>
<x>498</x>
<y>337</y>
</hint>
<hint type="destinationlabel">
<x>371</x>
@@ -501,8 +615,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>335</x>
<y>210</y>
<x>391</x>
<y>377</y>
</hint>
<hint type="destinationlabel">
<x>372</x>
@@ -517,8 +631,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>329</x>
<y>246</y>
<x>498</x>
<y>415</y>
</hint>
<hint type="destinationlabel">
<x>370</x>
@@ -533,8 +647,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>336</x>
<y>284</y>
<x>498</x>
<y>453</y>
</hint>
<hint type="destinationlabel">
<x>372</x>
@@ -550,7 +664,7 @@
<hints>
<hint type="sourcelabel">
<x>70</x>
<y>344</y>
<y>532</y>
</hint>
<hint type="destinationlabel">
<x>370</x>
@@ -581,8 +695,8 @@
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>271</x>
<y>285</y>
<x>498</x>
<y>500</y>
</hint>
<hint type="destinationlabel">
<x>179</x>
@@ -590,6 +704,54 @@
</hint>
</hints>
</connection>
<connection>
<sender>spinSegmentsW</sender>
<signal>valueChanged(int)</signal>
<receiver>PrimitiveEditor</receiver>
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>465</x>
<y>173</y>
</hint>
<hint type="destinationlabel">
<x>511</x>
<y>164</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinSegmentsL</sender>
<signal>valueChanged(int)</signal>
<receiver>PrimitiveEditor</receiver>
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>462</x>
<y>208</y>
</hint>
<hint type="destinationlabel">
<x>520</x>
<y>206</y>
</hint>
</hints>
</connection>
<connection>
<sender>spinSegmentsH</sender>
<signal>valueChanged(int)</signal>
<receiver>PrimitiveEditor</receiver>
<slot>replaceMesh()</slot>
<hints>
<hint type="sourcelabel">
<x>468</x>
<y>251</y>
</hint>
<hint type="destinationlabel">
<x>563</x>
<y>251</y>
</hint>
</hints>
</connection>
</connections>
<slots>
<slot>replaceMesh()</slot>