Skip to content

Commit

Permalink
Merge pull request #582 from KhronosGroup/fix/moveUI
Browse files Browse the repository at this point in the history
Move exposure and tone mapping to display tab
  • Loading branch information
UX3D-haertl authored Dec 18, 2024
2 parents 1f8cf60 + 5bb66ff commit e62717c
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,24 @@ <h2 class="title is-spaced">Display</h2>
<b-slider-tick :value="4" class="iblIntensitySliderMarker">10000</b-slider-tick>
</b-slider>
</b-field>
<b-field class="subtitle" label="Exposure"></b-field>
<b-slider rounded v-model="exposureSetting" :min="21" v-bind:max="-6" :step=0.1
:custom-formatter="val => Math.round((1.0 / Math.pow(2.0, val))*100000)/100000" class="exposureSlider" ticks v-on:dragging="exposureChanged.next($event)">
<b-slider-tick :value="-6" class="exposureSliderMarker">64</b-slider-tick>
<b-slider-tick :value="0" class="exposureSliderMarker">1</b-slider-tick>
<b-slider-tick :value="9.966" class="exposureSliderMarker">0.001</b-slider-tick>
<b-slider-tick :value="21" class="exposureSliderMarker">0</b-slider-tick>

</b-slider>
</b-field>

<b-field label="Tone Map" class="subtitle">
<b-select v-on:input="tonemapChanged.next($event.target.value)" v-model="toneMap">
<option v-for="(item) in tonemaps" v-bind:value="item.title">
{{ item.title }}
</option>
</b-select>
</b-field>
<b-field label="Background" class="subtitle">
<b-switch class="smallerLabel" v-model="renderEnv" v-on:input="renderEnvChanged.next($event.target.checked)" v-bind:disabled="ibl === false ? true : false">Environment
Map</b-switch>
Expand Down Expand Up @@ -427,24 +445,7 @@ <h2 class="title is-spaced">Advanced Controls</h2>
</template>
</b-select>
</b-field>
<b-field class="subtitle" label="Exposure"></b-field>
<b-slider rounded v-model="exposureSetting" :min="21" v-bind:max="-6" :step=0.1
:custom-formatter="val => Math.round((1.0 / Math.pow(2.0, val))*100000)/100000" class="exposureSlider" ticks v-on:dragging="exposureChanged.next($event)">
<b-slider-tick :value="-6" class="exposureSliderMarker">64</b-slider-tick>
<b-slider-tick :value="0" class="exposureSliderMarker">1</b-slider-tick>
<b-slider-tick :value="9.966" class="exposureSliderMarker">0.001</b-slider-tick>
<b-slider-tick :value="21" class="exposureSliderMarker">0</b-slider-tick>

</b-slider>
</b-field>

<b-field label="Tone Map" class="subtitle">
<b-select v-on:input="tonemapChanged.next($event.target.value)" v-model="toneMap">
<option v-for="(item) in tonemaps" v-bind:value="item.title">
{{ item.title }}
</option>
</b-select>
</b-field>
<b-switch v-model="skinning" v-on:input="skinningChanged.next($event.target.checked)">Skinning</b-switch>
<br>
<b-switch v-model="morphing" v-on:input="morphingChanged.next($event.target.checked)">Morphing</b-switch>
Expand Down

0 comments on commit e62717c

Please sign in to comment.