Search Unity

[Released] Block Light 2D - Ground penetrating lighting with Unity's Tilemaps

Discussion in 'Assets and Asset Store' started by RobronicGames, Jan 14, 2019.

  1. RobronicGames

    RobronicGames

    Joined:
    Nov 15, 2018
    Posts:
    34

    Block Light 2D is a block-based multi-layered propagating light framework that penetrates the ground, using Unity's Tilemap system.



    [Core features]
    • Ambient lighting and placable lighting, all customizable in color and strength;
    • A complete day night cycle system with customizable colors, speed, interval, span and dawn focus point;
    • Integrated seed-based chunk loading system;
    • Customizable multi-layer Perlin-based terrain generation to allow flexible environment testing;
    • A highly optimized algorithm ensuring incredibly fast light updates that aren't directly bound to the number of active lights for every action. You can have hundreds of lights in view with only a fraction of the performance loss;
    • A special performance control section that spreads asset script CPU execution over multiple frames, depending on a tweakable max milliseconds slider and more;
    • A complete lighting user interface with settings like:
      • Toggle lighting on or off with the click of a button;
      • Toggle random light color for placed lights;
      • Light penetration adjustment for all layers;
      • Back layer shading that controls the base shading factor for cave systems;
      • Day night cycle tweak options;
      • [Tool] Placing blocks on any layer;
      • [Tool] Removing blocks on any layer;
      • [Tool] Placing lights throughout the world;
      • [Tool] Removing lights;
    • A guide explaining the asset in its entirety, including how to set it up in your game, F.A.Q. and more as well as fully documented code for each script.
    Also included in this asset is Terrainify 2D, which handles the chunk loading and terrain generation parts. Check out its page for more information. Its guide is included in this asset as well.

    [Requirements]
    - At least Unity 2017.2 or later because of the integrated Tilemap system from Unity.
    NOTE: Earlier versions than 2018.2.11 have not been tested as of now. 2019.1.x is compatible.

    [Future plans]
    - Utilize ECS, the C# Job system and the Burst compiler to optimize CPU times even more with multi-threading if possible;
    - Multi-channel color blending with a single pass;
    - [Finished] A day night cycle system;
    - [Finished] Implement terrain generator and chunk loading
    - [Finished] A thorough expansion of functionality to make it easier to manipulate the asset;


    Block Light 2D - Place.png

    Block Light 2D - Game Example.png

    Block Light 2D - UI.png
     
    Last edited: Nov 2, 2019
    mgear likes this.
  2. RobronicGames

    RobronicGames

    Joined:
    Nov 15, 2018
    Posts:
    34
    UPDATE: Version 1.1 is now live. Check the original post for updated content :)
     
    Last edited: Nov 2, 2019
  3. RobronicGames

    RobronicGames

    Joined:
    Nov 15, 2018
    Posts:
    34
    UPDATE: Version 1.2.0 has been released and it adds a frequently requested day night cycle system and more. Check out the original post for updated content.