All Projects → thnewlands → unity-surfaceshader-flipbook

thnewlands / unity-surfaceshader-flipbook

Licence: MIT license
Surface shaders with flipbook / spritesheet animation functionality

Programming Languages

ShaderLab
938 projects
C#
18002 projects

Projects that are alternatives of or similar to unity-surfaceshader-flipbook

Nvjob Water Shader Simple And Fast
#NVJOB Simple Water Shaders. Free Unity Asset.
Stars: ✭ 172 (+300%)
Mutual labels:  shaders, shader
ShaderGlass
Overlay for running GPU shaders on top of Windows desktop
Stars: ✭ 417 (+869.77%)
Mutual labels:  shaders, shader
Unity Shaders
✨ Shader demo - More than 300 examples
Stars: ✭ 198 (+360.47%)
Mutual labels:  shaders, shader
Lowpolyshaders
Unity shaders optimized for Low Poly models.
Stars: ✭ 157 (+265.12%)
Mutual labels:  shaders, shader
nvjob-sky-shader-simple-and-fast
#NVJOB Dynamic Sky. Sky Shaders. Free Unity Asset.
Stars: ✭ 103 (+139.53%)
Mutual labels:  shaders, shader
Rimlight
Customizable rimlight shader for Unity that includes pulsation and noise scrolling. Give your scenes that extra oomph!
Stars: ✭ 170 (+295.35%)
Mutual labels:  shaders, shader
shaderplace
Real-time collaborative GLSL livecode editor
Stars: ✭ 43 (+0%)
Mutual labels:  shaders, shader
Shadergum
Unity3D GPU Sculpt & Morph
Stars: ✭ 125 (+190.7%)
Mutual labels:  shaders, shader
sparksl-noise
minimum proof of concept about procedural noise generation in SparkAR's shader language (SparkSL).
Stars: ✭ 16 (-62.79%)
Mutual labels:  shaders, shader
unity-reaction-diffusion
(WIP) ✏️ Test of a Reaction-Diffusion simulated with a compute shader in Unity.
Stars: ✭ 25 (-41.86%)
Mutual labels:  shaders, shader
Glsl Godrays
This module implements a volumetric light scattering effect(godrays)
Stars: ✭ 155 (+260.47%)
Mutual labels:  shaders, shader
viking-village-nvjob-sky-water-stc
Unity Viking Village + #NVJOB Water Shader, Dynamic Sky, STC (Demo). Unity Asset.
Stars: ✭ 29 (-32.56%)
Mutual labels:  shaders, shader
Unity Texture Curve
✏️ Example showing how to bake an AnimatedCurve into a Texture and use it in a shader.
Stars: ✭ 149 (+246.51%)
Mutual labels:  shaders, shader
Spirv Vm
Virtual machine for executing SPIR-V
Stars: ✭ 173 (+302.33%)
Mutual labels:  shaders, shader
Epsxe64ubuntu
Install ePSXe Linux (x64) & shaders using BIOS HLE and Core Plugins on x86-64 Debian, Ubuntu, Linux Mint and their derivatives.
Stars: ✭ 130 (+202.33%)
Mutual labels:  shaders, shader
sparkar-pixelate-shader
simple script-only pixelate shader with Facebook SparkAR.
Stars: ✭ 35 (-18.6%)
Mutual labels:  shaders, shader
Vertexshaderart
The repo for vertexshaderart.com
Stars: ✭ 107 (+148.84%)
Mutual labels:  shaders, shader
Unitylibrary
📚 Library of all kind of scripts, snippets & shaders for Unity
Stars: ✭ 1,968 (+4476.74%)
Mutual labels:  shaders, shader
stc8
#NVJOB STC8 v 3.2 (Custom shader for Unity SpeedTree 8)
Stars: ✭ 17 (-60.47%)
Mutual labels:  shaders, shader
GPU-Fog-Particles
Textureless fog particles using a highly customizable shader to attenuate noise values.
Stars: ✭ 303 (+604.65%)
Mutual labels:  shaders, shader

Flipbook Surface Shader for Unity

This is a surface shader solution for flipbook animation with spritesheets in Unity. I've been using this so that I can add shadows to flipbook animations without going through Unity's sprite system.

Setup is relatively simple:

  1. Create a spritesheet with even spacing between sprites. For my spritesheets I've been using: https://www.johnwordsworth.com/projects/photoshop-sprite-sheet-generator-script/ and generating source sprite images in 3d Studio MAX. This makes it especially easy to get normal information for renderings.
  2. Plug in your spritesheets to a new material with Custom/SurfaceSpriteSheet
  3. Set the number of rows / columns and then the number of overall frames. --- I count the number of overall frames in case of incomplete rows ---
  4. Set it loose! You can use the animator to set the frame number over time or make it loop using the built in animation speed variable!

Improvements / suggestions for other variations:

For foliage -- blend the bottom of the geometry with the ground by orienting the normals to the surface. This is easiest for flat surfaces with which you can just set the normals to point upward in a vertex shader.

Try implimenting billboarding -- In the past I've used this solution to good effect: https://gist.github.com/renaudbedard/7a90ec4a5a7359712202, note that it won't batch correctly out of the box.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].