mirror of
https://github.com/Rezmason/matrix.git
synced 2026-04-21 07:19:30 -07:00
It's hard to tune the glint brightness and contrast
This commit is contained in:
@@ -210,8 +210,8 @@ const versions = {
|
|||||||
cursorColor: [1.4, 2, 1.2],
|
cursorColor: [1.4, 2, 1.2],
|
||||||
isolateGlint: true,
|
isolateGlint: true,
|
||||||
glintColor: [3, 2.5, 0.6],
|
glintColor: [3, 2.5, 0.6],
|
||||||
glintBrightness: -2,
|
glintBrightness: -0.5,
|
||||||
glintContrast: 3,
|
glintContrast: 1.5,
|
||||||
baseBrightness: -0.4,
|
baseBrightness: -0.4,
|
||||||
baseContrast: 1.5,
|
baseContrast: 1.5,
|
||||||
highPassThreshold: 0,
|
highPassThreshold: 0,
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const loadJS = (src) =>
|
|||||||
});
|
});
|
||||||
|
|
||||||
export default async (canvas, config) => {
|
export default async (canvas, config) => {
|
||||||
await Promise.all([loadJS("lib/regl.js"), loadJS("lib/gl-matrix.js")]);
|
await Promise.all([loadJS("lib/regl.min.js"), loadJS("lib/gl-matrix.js")]);
|
||||||
|
|
||||||
const resize = () => {
|
const resize = () => {
|
||||||
canvas.width = Math.ceil(canvas.clientWidth * config.resolution);
|
canvas.width = Math.ceil(canvas.clientWidth * config.resolution);
|
||||||
|
|||||||
Reference in New Issue
Block a user