blob: e4a84769a14b996bd4b8f13f5bb3e1fab784fa37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
|
<?xml version="1.0"?>
<Window Caption="Debug" Icon="#deferred.crow.svg" Left="10" Top="10" Width="40%" Height="90%">
<VerticalStack Margin="5">
<Expandable Caption="Pipeline Statistics" Margin="5">
<ListBox Data="{StatResults}">
<ItemTemplate>
<HorizontalStack>
<Label Style="labCaption" Text="{StatName}"/>
<Label Style="labValue" Text="{Value}" TextAlignment="Right"/>
</HorizontalStack>
</ItemTemplate>
</ListBox>
</Expandable>
<Expandable Caption="Debug Views" Margin="5">
<VerticalStack Spacing="1" Margin="10" >
<HorizontalStack Height="Fit">
<Label Text="Fps:" Width="80"/>
<Label Text="{fps}" Width="Stretched" TextAlignment="Center"/>
</HorizontalStack>
<EnumSelector Margin="20" EnumValue="{²CurrentDebugView}" />
</VerticalStack>
</Expandable>
<Expandable Caption="Materials" Margin="5">
<ListBox Data="{Materials}">
<ItemTemplate>
<VerticalStack Height="Fit" Background="Black" Margin="5">
<HorizontalStack Height="Fit">
<Label Style="labCaption" Text="base color"/>
<Label Style="labValue" Text="{baseColorFactor}" TextAlignment="Right"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labCaption" Text="emissive"/>
<Label Style="labValue" Text="{emissiveFactor}" TextAlignment="Right"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labCaption" Text="diffuse"/>
<Label Style="labValue" Text="{diffuseFactor}" TextAlignment="Right"/>
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labCaption" Text="specular"/>
<Label Style="labValue" Text="{specularFactor}" TextAlignment="Right"/>
</HorizontalStack>
</VerticalStack>
</ItemTemplate>
</ListBox>
</Expandable>
<ColorWheel Name="cw" Width="100" Height="100"/>
<Slider SmallIncrement="0.01" LargeIncrement="0.1" Height="10" Minimum="0.0" Maximum="2.0" Value="{²../cw.InnerRadius}"/>
<HueSelector Focusable="true" Height="15" Hue="{²../cw.Hue}"/>
<Widget Width="30" Height="16" Background="{CurrentColor}"/>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="R:"/>
<ColorSlider Name="cs" Component="Red" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="G:"/>
<ColorSlider Name="cs" Component="Green" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="B:"/>
<ColorSlider Name="cs" Component="Blue" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="A:"/>
<ColorSlider Name="cs" Component="Alpha" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="H:"/>
<ColorSlider Name="cs" Component="Hue" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="S:"/>
<ColorSlider Name="cs" Component="Saturation" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
<HorizontalStack Height="Fit">
<Label Style="labColor" Text="V:"/>
<ColorSlider Name="cs" Component="Value" CurrentColor="{²CurrentColor}"/>
<Label Style="labColorV" Text="{../cs.CurrentValue}" />
</HorizontalStack>
</VerticalStack>
</Window>
|