Reduce default lighting a bit

This commit is contained in:
2026-05-21 11:23:40 +02:00
parent db2fc2d066
commit b80504aec4
2 changed files with 3 additions and 2 deletions

View File

@@ -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],

View File

@@ -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);