From a943106a4992ebd56be05e187d9d741fec2db5f4 Mon Sep 17 00:00:00 2001 From: Mike Bloy Date: Mon, 29 Jan 2024 23:18:29 -0600 Subject: [PATCH] add blindsense sensor mode --- scripts/module.js | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/scripts/module.js b/scripts/module.js index d0eec1c..2173eb9 100644 --- a/scripts/module.js +++ b/scripts/module.js @@ -70,6 +70,24 @@ Hooks.on('init', () => { preferred: false } }) + CONFIG.Canvas.visionModes.blindsense = new VisionMode({ + id: 'blindsense', + label: 'Blindsense', + canvas: { + shader: ColorAdjustmentsSamplerShader, + uniforms: { contrast: 0, saturation: -0.5, brightness: -0.2 } + }, + lighting: { + background: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED }, + coloration: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED }, + illumination: { visibility: VisionMode.LIGHTING_VISIBILITY.DISABLED } + }, + vision: { + darkness: { adaptive: false }, + defaults: { attenuation: 0.1, contrast: 0, saturation: -1, brightness: 0 }, + preferred: false + } + }) }) Hooks.on('swadePreRollAttribute', preTraitRollModifiers)