tModLoader Fancy Lighting Mod

I’ve released a new mod implementing fancy lighting in tModLoader 1.4—basically just smooth lighting and simulated ambient occlusion, similar to the setting of the same name in Minecraft. I’ve wanted to create a mod like this since I saw the released footage of Terraria: Otherworld, and I think it’s turned out relatively well.

Steam Workshop Link: Steam Workshop::Fancy Lighting
Source Code: GitHub - RandomComputerUser/FancyLighting-Terraria: Fancy Lighting Mod for Terraria

Compare the following images, modded and vanilla:
44299F31-60A8-4B22-AA55-098FB53995F8.jpeg33213BDC-863F-4E5C-B53C-E91DACDCFC2F.jpeg5747B6DD-2FE3-4930-84FA-A353C005EBF2.jpeg2942761E-2C77-4141-BFB2-BA64CDEA4016.jpegB4EDEF96-BB63-4F0B-965F-140B0D522478.jpegDA1AE222-5556-4B73-9835-E58593A6823D.jpeg6881EF06-C5DA-481D-AD40-0B915D5078A2.jpeg51EB3068-7BB6-42C2-83DA-B66A7D6878EF.jpeg057DB306-3E58-4A39-B15F-F7E92D93CBCC.jpeg94B428FF-1726-4A01-A492-2490DD10E429.jpeg

Previously, I released a mod titled Smooth Lighting for tModLoader 1.3. However, that mod had issues with things such as the spelunker potion, the dangersense potion, and crystal shards, all of which glow without actually emitting light to their surroundings. These issues have been fixed in with mod. Additionally, I’ve also made sure to add support of illuminant paint. Since I had to hardcode these fixes, this mod is not likely to work with modded content that emissive textures to walls or tiles. Another issue was that the lightmap would block the view of the light sky, which I’ve fixed by multiplying the lightmap only by the tile(2) and wall render layers instead of applying the lightmap on top of the entire scene. Also, the old mod did not add ambient occlusion.
 
YOOOOO
You bet I'm installing this once other mods update!
Quick request though, I absolutely loved the dark vibe this mod had at night in 1.3, would it be possible to add a config option to bring that back? If not, that's alright, but if it is then that would make me incredibly happy
 
YOOOOO
You bet I'm installing this once other mods update!
Quick request though, I absolutely loved the dark vibe this mod had at night in 1.3, would it be possible to add a config option to bring that back? If not, that's alright, but if it is then that would make me incredibly happy
It’s definitely possible, but since the smooth lighting implementation is different I don’t really think it makes since to. In 1.3, the sky was darker during the night because the lighting was drawn over the sky as well, which also meant that you couldn’t see the moon. I don’t plan on replicating this behavior.
 
It’s definitely possible, but since the smooth lighting implementation is different I don’t really think it makes since to. In 1.3, the sky was darker during the night because the lighting was drawn over the sky as well, which also meant that you couldn’t see the moon. I don’t plan on replicating this behavior.
That's alright!
 
I've updated the mod to v0.1.1:
  • Added new options to change the intensity and radius of ambient occlusion
  • The default setting for ambient occlusion has been made slightly more subtle
  • Ambient occlusion now has a higher resolution (1x1 instead of 2x2)
  • Ambient occlusion no longer slightly darkens all walls
  • Added support for meteorite brick as a glowing block
  • Fixed some minor visual bugs with glowing blocks
  • Updated config UI
  • Changed mod to client side only
  • Included source code in tmod file
 
Back
Top Bottom