Search Unity

Minecraft-like shadow shader

Discussion in 'Shaders' started by leop20808, Apr 27, 2022.

  1. leop20808

    leop20808

    Joined:
    Jan 23, 2022
    Posts:
    1
    Hello

    I was making a minecraft-like game with isometric camera and I couldn't develop a shadow to help maintain the sense of depth.

    my idea was to get a result similar to minecraft itself, as you can see in the screenshot below:

    upload_2022-4-26_20-59-18.png

    my main idea was to put a shader in a polygon (like a cylinder) and make the region of the terrain that was in contact with it present a slight shading, but I was not successful

    anyone can pls help me?
     
  2. strompyvipex

    strompyvipex

    Joined:
    Aug 18, 2021
    Posts:
    3
    Hi you can use orthographic projection