Tweak: VCR display brightness
This commit is contained in:
parent
50d755793d
commit
8a008e4b99
@ -182,21 +182,17 @@ export function createVcrDisplay() {
|
||||
canvas.height = 32;
|
||||
const ctx = canvas.getContext('2d');
|
||||
|
||||
ctx.fillStyle = '#0a0a0a';
|
||||
ctx.fillStyle = '#030303';
|
||||
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
||||
|
||||
state.vcrDisplayTexture = new THREE.CanvasTexture(canvas);
|
||||
state.vcrDisplayTexture.needsUpdate = true;
|
||||
|
||||
const displayGeometry = new THREE.PlaneGeometry(0.45, 0.1); // Adjust geometry width for new canvas size
|
||||
const displayMaterial = new THREE.MeshPhongMaterial({
|
||||
const displayMaterial = new THREE.MeshBasicMaterial({
|
||||
map: state.vcrDisplayTexture,
|
||||
side: THREE.FrontSide,
|
||||
color: 0xffffff,
|
||||
transparent: true,
|
||||
emissive: 0x00ff44,
|
||||
emissiveIntensity: 0.05,
|
||||
shininess: 0
|
||||
color: 0x105a10,
|
||||
});
|
||||
|
||||
const displayMesh = new THREE.Mesh(displayGeometry, displayMaterial);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user