3D Sprite Shadows and Animation

$9
Publisher AlpaSun Development
File size 362.75kB
Number of files 23
Latest version 1.4.0
Latest release date 2022-07-07 06:33:11
First release date 2022-03-10 02:24:13
Supported Unity versions 2018.4.2 or higher

This asset will allow the use of animated sprites on quads in a 3D environment by simply dropping one script on your object. The custom shader casts shadows from sprites onto your 3D environment with proper shadow cut outs.


The shadows are true projected shadows based on the lights in the scene. The shadows are not just masked sprites projected onto the ground.


All you need to make this work is a quad and a sprite or sprite sheet. The shader and animation scripts can be combined together for animated sprites with shadows.


Main features include:

  • Full sample project created in URP to demonstrate the asset
  • Shader created in Shader Graph for easy editing
  • 3 separate shaders verified in all pipelines - URP, HDRP, built-in pipelines
  • Properly cut out shadows from the sprite
  • Static or moving animated sprites in a 3D environment with shadows
  • Works on a simple quad object with sprite sheet material
  • Sprite sheets can contain multiple animations or just the one you will be using
  • Animated character example script that moves an NPC around
  • Instructions on how to use the shader in all pipelines
  • Total number of sprite frames can be set for the script in the UI
  • NEW - Optional HDR based emissive glow can be added to sprites through the existing shader

Support:


Check out my other assets:


Node Based RPG

Fade With UI Toolkit (FREE)