Reduce default lighting a bit
This commit is contained in:
@@ -16,7 +16,7 @@ const theater2Popup = `
|
|||||||
|
|
||||||
export const config = {
|
export const config = {
|
||||||
scene : {
|
scene : {
|
||||||
initialExposure: 1.5,
|
initialExposure: 1.2,
|
||||||
autoLP: false,
|
autoLP: false,
|
||||||
shadows: false,
|
shadows: false,
|
||||||
initLightDir: [-0.3,-0.7,0.1],
|
initLightDir: [-0.3,-0.7,0.1],
|
||||||
|
|||||||
@@ -24,13 +24,14 @@ export default class extends Controller {
|
|||||||
const content = document.createElement(contentType);
|
const content = document.createElement(contentType);
|
||||||
if (contentType === 'img') {
|
if (contentType === 'img') {
|
||||||
content.src = event.content?.imgSrc;
|
content.src = event.content?.imgSrc;
|
||||||
|
content.alt = event.content?.description.trim();
|
||||||
content.classList.add('img-fluid');
|
content.classList.add('img-fluid');
|
||||||
}
|
}
|
||||||
|
|
||||||
body.appendChild(content);
|
body.appendChild(content);
|
||||||
|
|
||||||
const description = document.createElement('p');
|
const description = document.createElement('p');
|
||||||
description.textContent = event.content?.description;
|
description.textContent = event.content?.description.trim();
|
||||||
description.classList.add('py-3', 'my-2', 'fst-italic');
|
description.classList.add('py-3', 'my-2', 'fst-italic');
|
||||||
|
|
||||||
body.appendChild(description);
|
body.appendChild(description);
|
||||||
|
|||||||
Reference in New Issue
Block a user