Organized folder structure;
Added new SSS Lut Baker; Removed old SubsurfaceLookupTextureIntegrator;
This commit is contained in:
44
Editor/SSS/SSSLutBakerView.uxml
Normal file
44
Editor/SSS/SSSLutBakerView.uxml
Normal file
@@ -0,0 +1,44 @@
|
||||
<engine:UXML xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:engine="UnityEngine.UIElements" xmlns:editor="UnityEditor.UIElements" noNamespaceSchemaLocation="../../../../UIElementsSchema/UIElements.xsd" editor-extension-mode="True">
|
||||
<engine:VisualElement data-source-type="Misaki.HdrpToon.Editor.SSSLutBakerView, Misaki.HdrpToon.Editor" style="flex-grow: 1; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px;">
|
||||
<engine:Label text="SSS Lut Baker" style="font-size: 18px; padding-top: 0; padding-right: 0; padding-bottom: 0; padding-left: 0; margin-top: 12px; margin-bottom: 8px; margin-left: 4px; margin-right: 6px; -unity-font-style: bold;" />
|
||||
<engine:Label text="Parameters:" style="-unity-font-style: bold; margin-top: 12px; margin-bottom: 4px; margin-right: 2px; margin-left: 2px;" />
|
||||
<engine:FloatField label="Scatter Radius" value="1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="scatterRadius" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:FloatField>
|
||||
<engine:Slider label="Intensity" value="1" high-value="10" show-input-field="true" page-size="0.1">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="intensity" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:Slider>
|
||||
<engine:EnumField label="Sample Count" value="Center" type="Misaki.HdrpToon.Editor.SSSLutBakerView+Quality, Misaki.HdrpToon.Editor">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" binding-mode="TwoWay" data-source-path="sampleCount" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:DropdownField label="Apply Tonemap" choices="Disable,Enable" index="0">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="index" data-source-path="applyTonemap" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:DropdownField>
|
||||
<engine:EnumField label="Output Resolution" value="Center" type="Misaki.HdrpToon.Editor.SSSLutBakerView+Quality, Misaki.HdrpToon.Editor">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" binding-mode="TwoWay" data-source-path="outputResolution" />
|
||||
</Bindings>
|
||||
</engine:EnumField>
|
||||
<engine:SliderInt label="Output Quality" value="75" show-input-field="true" high-value="100" low-value="50">
|
||||
<Bindings>
|
||||
<engine:DataBinding property="value" data-source-path="outputQuality" binding-mode="TwoWay" />
|
||||
</Bindings>
|
||||
</engine:SliderInt>
|
||||
<engine:Label text="Preview:" style="-unity-font-style: bold; margin-top: 12px; margin-bottom: 4px; margin-right: 2px; margin-left: 2px;" />
|
||||
<engine:VisualElement style="flex-grow: 1; padding-top: 8px; padding-right: 8px; padding-bottom: 8px; padding-left: 8px; border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); margin-top: 4px; margin-right: 4px; margin-bottom: 4px; margin-left: 4px;">
|
||||
<engine:Image name="preview-image" style="flex-grow: 1;" />
|
||||
</engine:VisualElement>
|
||||
<engine:VisualElement style="flex-direction: row; margin-top: 4px;">
|
||||
<engine:Button text="Preview" name="preview-button" style="flex-grow: 1; flex-basis: 0;" />
|
||||
<engine:Button text="Bake" name="bake-button" style="flex-basis: 0; flex-grow: 1; background-color: rgb(70, 96, 124);" />
|
||||
</engine:VisualElement>
|
||||
</engine:VisualElement>
|
||||
</engine:UXML>
|
||||
Reference in New Issue
Block a user