fence color
This commit is contained in:
parent
ac1b853d25
commit
4dce5147d6
|
@ -118,7 +118,7 @@ a[href^="#"] {
|
||||||
@apply bg-white p-10 border rounded shadow prose ;
|
@apply bg-white p-10 border rounded shadow prose ;
|
||||||
|
|
||||||
&-backdrop {
|
&-backdrop {
|
||||||
@apply fixed top-0 left-0 right-0 bottom-0 bg-white bg-opacity-70 flex items-center justify-center;
|
@apply fixed top-0 left-0 right-0 bottom-0 bg-white bg-opacity-70 flex items-center justify-center z-30;
|
||||||
}
|
}
|
||||||
|
|
||||||
form {
|
form {
|
||||||
|
|
|
@ -87,6 +87,7 @@ watch([section_count, extra_section], () => {
|
||||||
</template>
|
</template>
|
||||||
<Loader />
|
<Loader />
|
||||||
<TresCanvas shadows>
|
<TresCanvas shadows>
|
||||||
|
<StatsGl />
|
||||||
<TresPerspectiveCamera v-bind="cameraStat" ref="camera" />
|
<TresPerspectiveCamera v-bind="cameraStat" ref="camera" />
|
||||||
<OrbitControls v-bind="controlsState" make-default />
|
<OrbitControls v-bind="controlsState" make-default />
|
||||||
<TresGroup :position-x="Math.min(section_count, max_size) * fence_section * -1" :position-y="-3">
|
<TresGroup :position-x="Math.min(section_count, max_size) * fence_section * -1" :position-y="-3">
|
||||||
|
|
|
@ -124,7 +124,7 @@ const plurals = {
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<div class="container py-4">
|
<div class="container relative py-4">
|
||||||
<ClientOnly fallback-tag="div">
|
<ClientOnly fallback-tag="div">
|
||||||
<template #fallback>
|
<template #fallback>
|
||||||
<div class="fallback">
|
<div class="fallback">
|
||||||
|
|
|
@ -21,13 +21,18 @@ renderer.value.toneMapping = ReinhardToneMapping
|
||||||
renderer.value.shadowMap.enabled = true
|
renderer.value.shadowMap.enabled = true
|
||||||
renderer.value.shadowMap.type = PCFSoftShadowMap
|
renderer.value.shadowMap.type = PCFSoftShadowMap
|
||||||
|
|
||||||
const { scene: top } = await useGLTF('/models_one/verh_100.glb', { draco: true })
|
const { scene: top_model } = await useGLTF('/models_one/verh_100.glb', { draco: true })
|
||||||
const { scene: fence } = await useGLTF('/models_one/fence.glb', { draco: true })
|
const { scene: fence_model } = await useGLTF('/models_one/fence.glb', { draco: true })
|
||||||
const { scene: fastening } = await useGLTF('/models_one/krepleniye_planok (1).glb', { draco: true })
|
const { scene: fastening_model } = await useGLTF('/models_one/krepleniye_planok (1).glb', { draco: true })
|
||||||
const { scene: lamelle } = await useGLTF('/models_one/lamel_100.glb', { draco: true })
|
const { scene: lamelle_model } = await useGLTF('/models_one/lamel_100.glb', { draco: true })
|
||||||
|
|
||||||
set_material(lamelle, getColorHexFromRal(lamelle_color.value));
|
const top = ref(top_model)
|
||||||
[top, fence, fastening].map((el: any) => { set_material(el, getColorHexFromRal(pillar_color.value)) })
|
const fence = ref(fence_model)
|
||||||
|
const fastening = ref(fastening_model)
|
||||||
|
const lamelle = ref(lamelle_model)
|
||||||
|
|
||||||
|
set_material(lamelle.value, getColorHexFromRal(lamelle_color.value));
|
||||||
|
[top, fence, fastening].map((el: any) => { set_material(el.value, getColorHexFromRal(pillar_color.value)) })
|
||||||
|
|
||||||
const { seek, seekAll } = useSeek()
|
const { seek, seekAll } = useSeek()
|
||||||
watch(lamelle_color, () => {
|
watch(lamelle_color, () => {
|
||||||
|
@ -35,7 +40,7 @@ watch(lamelle_color, () => {
|
||||||
items.forEach(element => {
|
items.forEach(element => {
|
||||||
set_material(element, getColorHexFromRal(lamelle_color.value))
|
set_material(element, getColorHexFromRal(lamelle_color.value))
|
||||||
});
|
});
|
||||||
set_material(lamelle, getColorHexFromRal(lamelle_color.value));
|
set_material(lamelle.value, getColorHexFromRal(lamelle_color.value));
|
||||||
})
|
})
|
||||||
watch(pillar_color, () => {
|
watch(pillar_color, () => {
|
||||||
const items = [
|
const items = [
|
||||||
|
@ -48,7 +53,7 @@ watch(pillar_color, () => {
|
||||||
items.forEach(element => {
|
items.forEach(element => {
|
||||||
set_material(element, getColorHexFromRal(pillar_color.value))
|
set_material(element, getColorHexFromRal(pillar_color.value))
|
||||||
});
|
});
|
||||||
[top, fence, fastening].map((el: any) => { set_material(el, getColorHexFromRal(pillar_color.value)) })
|
[top, fence, fastening].map((el: any) => { set_material(el.value, getColorHexFromRal(pillar_color.value)) })
|
||||||
})
|
})
|
||||||
watch([section_count, extra_section], () => {
|
watch([section_count, extra_section], () => {
|
||||||
const base = seek(scene.value, 'name', 'base')
|
const base = seek(scene.value, 'name', 'base')
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 2.1 MiB |
Binary file not shown.
Before Width: | Height: | Size: 13 MiB |
Binary file not shown.
Before Width: | Height: | Size: 2.2 MiB |
Binary file not shown.
Before Width: | Height: | Size: 11 MiB |
Binary file not shown.
Before Width: | Height: | Size: 5.0 MiB |
Loading…
Reference in New Issue