noise only pillar
This commit is contained in:
parent
8bfa770c6f
commit
80171408cc
|
@ -25,8 +25,8 @@ const { scene: verh } = await useGLTF('/models_exp/verh.glb')
|
||||||
const lamelle_color = use_lamelle_color()
|
const lamelle_color = use_lamelle_color()
|
||||||
const pillar_color = use_pillar_color()
|
const pillar_color = use_pillar_color()
|
||||||
|
|
||||||
set_material(planki, getColorHexFromRal(lamelle_color.value), undefined, false);
|
set_material(planki, getColorHexFromRal(lamelle_color.value));
|
||||||
[stolb, verh, krepleniye_planok].map(el => set_material(el, getColorHexFromRal(pillar_color.value), undefined, false))
|
[stolb, verh, krepleniye_planok].map(el => set_material(el, getColorHexFromRal(pillar_color.value)))
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
|
|
|
@ -146,12 +146,13 @@ const setPillar = () => {
|
||||||
|
|
||||||
let arr = [top, pillar_outer, pillar_inner, bottom]
|
let arr = [top, pillar_outer, pillar_inner, bottom]
|
||||||
arr.map(el => {
|
arr.map(el => {
|
||||||
set_material({ children: [el] }, getColorHexFromRal(pillar_color.value))
|
set_material({ children: [el] }, getColorHexFromRal(pillar_color.value), undefined, true)
|
||||||
})
|
})
|
||||||
set_material(
|
set_material(
|
||||||
{ children: [arr[2]] },
|
{ children: [arr[2]] },
|
||||||
getColorHexFromRal(pillar_color.value),
|
getColorHexFromRal(pillar_color.value),
|
||||||
{ pattern: pillar_pattern.value, count: lamelles_count.value },
|
{ pattern: pillar_pattern.value, count: lamelles_count.value },
|
||||||
|
true
|
||||||
)
|
)
|
||||||
pillar.value = arr.map(el => el.clone())
|
pillar.value = arr.map(el => el.clone())
|
||||||
}
|
}
|
||||||
|
|
|
@ -79,7 +79,7 @@ export const set_material = (
|
||||||
scene: any,
|
scene: any,
|
||||||
color: any,
|
color: any,
|
||||||
pattern: { pattern: patternIds, count: number } | undefined = undefined,
|
pattern: { pattern: patternIds, count: number } | undefined = undefined,
|
||||||
noise_material: boolean = true,
|
noise_material: boolean = false,
|
||||||
) => {
|
) => {
|
||||||
let c = color
|
let c = color
|
||||||
const material = noiseMaterial.clone()
|
const material = noiseMaterial.clone()
|
||||||
|
|
Loading…
Reference in New Issue