mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Make fog black
This commit is contained in:
parent
7ea4f058c8
commit
62142101fc
@ -153,7 +153,7 @@ function Modification.PatchFiles(patches)
|
|||||||
if patches.PostFinalConst then
|
if patches.PostFinalConst then
|
||||||
local postFinal = ModTextFileGetContent("data/shaders/post_final.frag")
|
local postFinal = ModTextFileGetContent("data/shaders/post_final.frag")
|
||||||
for k, v in pairs(patches.PostFinalConst) do
|
for k, v in pairs(patches.PostFinalConst) do
|
||||||
postFinal = postFinal:gsub(string.format("const bool %s%%s+=[^;]+;", k), string.format("const bool %s = %s;", k, tostring(v)))
|
postFinal = postFinal:gsub(string.format(" %s%%s+=[^;]+;", k), string.format(" %s = %s;", k, tostring(v)), 1)
|
||||||
end
|
end
|
||||||
ModTextFileSetContent("data/shaders/post_final.frag", postFinal)
|
ModTextFileSetContent("data/shaders/post_final.frag", postFinal)
|
||||||
end
|
end
|
||||||
@ -217,6 +217,10 @@ function Modification.RequiredChanges()
|
|||||||
ENABLE_GLOW = false,
|
ENABLE_GLOW = false,
|
||||||
ENABLE_GAMMA_CORRECTION = false,
|
ENABLE_GAMMA_CORRECTION = false,
|
||||||
ENABLE_PATH_DEBUG = false,
|
ENABLE_PATH_DEBUG = false,
|
||||||
|
FOG_FOREGROUND = "vec4(0.0,0.0,0.0,1.0)",
|
||||||
|
FOG_BACKGROUND = "vec3(0.0,0.0,0.0)",
|
||||||
|
FOG_FOREGROUND_NIGHT = "vec4(0.0,0.0,0.0,1.0)",
|
||||||
|
FOG_BACKGROUND_NIGHT = "vec3(0.0,0.0,0.0)",
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user