add blindsense sensor mode

This commit is contained in:
Mike Bloy 2024-01-29 23:18:29 -06:00
parent 63b25faec0
commit a943106a49

View File

@ -70,6 +70,24 @@ Hooks.on('init', () => {
preferred: false 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) Hooks.on('swadePreRollAttribute', preTraitRollModifiers)