unpacked source for packs
This commit is contained in:
@@ -16,6 +16,61 @@ function _checkModule (name) {
|
||||
|
||||
Hooks.on('setup', api.registerFunctions)
|
||||
|
||||
Hooks.on('init', () => {
|
||||
log('INIT VISION')
|
||||
CONFIG.Canvas.visionModes.basic = new VisionMode({
|
||||
id: 'basic',
|
||||
label: 'VISION.ModeBasicVision',
|
||||
canvas: {
|
||||
shader: ColorAdjustmentsSamplerShader,
|
||||
uniforms: { contrast: 0, saturation: -0.85, brightness: -1.0 }
|
||||
},
|
||||
lighting: {
|
||||
background: { visibility: VisionMode.LIGHTING_VISIBILITY.REQUIRED }
|
||||
},
|
||||
vision: {
|
||||
darkness: { adaptive: false },
|
||||
defaults: { attenuation: 0, contrast: 0, saturation: -0.85, brightness: -1.0 },
|
||||
preferred: true
|
||||
}
|
||||
})
|
||||
CONFIG.Canvas.visionModes.darkvision = new VisionMode({
|
||||
id: 'darkvision',
|
||||
label: 'VISION.ModeDarkvision',
|
||||
canvas: {
|
||||
shader: ColorAdjustmentsSamplerShader,
|
||||
uniforms: { contrast: 0, saturation: 0, brightness: 0.75, tint: [0.8, 0.8, 1.0] }
|
||||
},
|
||||
lighting: {
|
||||
background: { visibility: VisionMode.LIGHTING_VISIBILITY.REQUIRED },
|
||||
levels: {
|
||||
[VisionMode.LIGHTING_LEVELS.DIM]: VisionMode.LIGHTING_LEVELS.BRIGHT
|
||||
}
|
||||
},
|
||||
vision: {
|
||||
darkness: { adaptive: false },
|
||||
defaults: { attenuation: 0.1, contrast: 0, saturation: 0, brightness: 0.75 },
|
||||
preferred: true
|
||||
}
|
||||
})
|
||||
CONFIG.Canvas.visionModes.lowlight = new VisionMode({
|
||||
id: 'lowlight',
|
||||
label: 'Low Light Vision',
|
||||
canvas: {
|
||||
shader: ColorAdjustmentsSamplerShader,
|
||||
uniforms: { contrast: 0, saturation: -0.5, brightness: -0.2 }
|
||||
},
|
||||
lighting: {
|
||||
background: { visibility: VisionMode.LIGHTING_VISIBILITY.REQUIRED }
|
||||
},
|
||||
vision: {
|
||||
darkness: { adaptive: false },
|
||||
defaults: { attenuation: 0.1, contrast: 0, saturation: -0.5, brightness: -0.2 },
|
||||
preferred: true
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
Hooks.on('ready', () => {
|
||||
_checkModule('warpgate')
|
||||
_checkModule('socketlib')
|
||||
|
||||
Reference in New Issue
Block a user