aboutsummaryrefslogtreecommitdiff
path: root/index.html
blob: 1c74f6e12464e30a8f8afab106ce3b606c2817a0 (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
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Test</title>
    <link rel="stylesheet" href="https://unpkg.com/spectre.css/dist/spectre.min.css">
    <link rel="stylesheet" href="style.css">
  </head>
  <body>

    <div class="container grid-xl">
      <div class="columns">
        <div class="column col-xl-12">
          <div id="output-wrapper" class="p-centered">
            <canvas id="render-output"></canvas>
          </div>
        </div>
        <div class="column">
          <div class="columns controls">
            <!-- <div class="column col-12 col-xl-3">
              <p>foo</p>
            </div>
            <div class="column col-12 col-xl-1 hide-xl">
              <div class="divider"></div>
            </div> -->
            <div class="column col-12 col-xl-9">
              <p>Render options</p>
              <div class="form-group">
                <label class="form-switch">
                  <input id="diffuse-toggle" type="checkbox" checked>
                  <i class="form-icon"></i> Diffuse lighting
                </label>
              </div>
              <div class="form-group">
                <label class="form-switch">
                  <input id="specular-toggle" type="checkbox" checked>
                  <i class="form-icon"></i> Specular lighting
                </label>
              </div>
              <div class="form-group">
                <label class="form-switch">
                  <input id="shadows-toggle" type="checkbox" checked>
                  <i class="form-icon"></i> Shadows
                </label>
              </div>
              <div class="form-group">
                <label class="form-switch">
                  <input id="reflections-toggle" type="checkbox" checked>
                  <i class="form-icon"></i> Reflections
                </label>
              </div>
              <div class="form-group">
                <label class="form-switch">
                  <input id="enable-threads-toggle" type="checkbox" checked>
                  <i class="form-icon"></i> Multi-threaded rendering
                </label>
              </div>
              <div class="form-group thread-slider">
                <label class="form-label label-sm" for="threads">Render threads</label>
                <!-- TODO style -->
                <div class="input-group"> 
                  <input id="threads" class="slider" type="range" min="2" max="16" value="2" step="2">
                  <span id="threads-value" class="input-group-addon">2</span>
                </div>
              </div>
              <button id="render" class="btn btn-primary">Render</button>
            </div>
          </div>
        </div>
      </div>
    </div>
   
    <script src="./bundle.js"></script>
  </body>
</html>