All Projects → keijiro → Particlemotionvector

keijiro / Particlemotionvector

Shows how to support rendering motion vectors within the standard particle system of Unity.

Labels

Projects that are alternatives of or similar to Particlemotionvector

Sweetfx
Stars: ✭ 51 (-47.42%)
Mutual labels:  hlsl
Pbr proj
Shader of PBR for Unity
Stars: ✭ 68 (-29.9%)
Mutual labels:  hlsl
Gteleporter
Stars: ✭ 91 (-6.19%)
Mutual labels:  hlsl
Nnao
Neural Network Ambien Occlusion based on http://theorangeduck.com/page/neural-network-ambient-occlusion
Stars: ✭ 57 (-41.24%)
Mutual labels:  hlsl
3d Game Shaders For Beginners
🎮 A step-by-step guide to implementing SSAO, depth of field, lighting, normal mapping, and more for your 3D game.
Stars: ✭ 11,698 (+11959.79%)
Mutual labels:  hlsl
Plannarshadowforunity
Planar Shadow is very cheap and useful for mobile games.
Stars: ✭ 74 (-23.71%)
Mutual labels:  hlsl
Fs2020 Vl3 Rotax915
JMB VL3 Racing 915 iS aircraft for Flight Simulator 2020.
Stars: ✭ 45 (-53.61%)
Mutual labels:  hlsl
Cs2x
Transpiles a C# subset to non .NET languages and runtimes. (Powered by Roslyn)
Stars: ✭ 97 (+0%)
Mutual labels:  hlsl
Sgi
Stargate Invasion is a mod for Sins of a Solar Empire.
Stars: ✭ 67 (-30.93%)
Mutual labels:  hlsl
Hlslexplorer
See how hardware understands your HLSL
Stars: ✭ 91 (-6.19%)
Mutual labels:  hlsl
Jl S Unity Blend Modes
👾 Collection of Unity shaders that support blend modes like photoshop layer style (Darken, Multiply, Linear Burn, etc)
Stars: ✭ 62 (-36.08%)
Mutual labels:  hlsl
Shaderconductor
ShaderConductor is a tool designed for cross-compiling HLSL to other shading languages
Stars: ✭ 1,146 (+1081.44%)
Mutual labels:  hlsl
Stormshade
Custom reshade build (unlocked z-depth) + shader preset for Final Fantasy 14.
Stars: ✭ 83 (-14.43%)
Mutual labels:  hlsl
Reshade Xhair
A heavily customizable, fullscreen-compatible crosshair overlay for ReShade
Stars: ✭ 57 (-41.24%)
Mutual labels:  hlsl
Gpu Planetary Rendering
GPU atmosphertic scattering and planet generation in Unity 3D
Stars: ✭ 92 (-5.15%)
Mutual labels:  hlsl
Ray Mmd
🎨 The project is designed to create a physically-based rendering at mikumikudance.
Stars: ✭ 1,045 (+977.32%)
Mutual labels:  hlsl
Fluffie
Stars: ✭ 69 (-28.87%)
Mutual labels:  hlsl
Gshade
GShade is a heavily modified fork of ReShade that features numerous improvements as well as a selectively-unlocked depth buffer for specific online games.
Stars: ✭ 97 (+0%)
Mutual labels:  hlsl
Dq Skinning For Unity
Stars: ✭ 93 (-4.12%)
Mutual labels:  hlsl
Hexbokehblur
Hexagonal Bokeh Blur
Stars: ✭ 85 (-12.37%)
Mutual labels:  hlsl

ParticleMotionVector

This is an example that shows how to support rendering motion vectors within the standard particle system of Unity.

Particles/Standard Opaque with Motion Vectors

inspector

This shader only supports rendering mesh particles without transparency. It may not sound very useful for particle effects in a general sense, but actually useful in some specific cases, like when rendering many small moving objects (asteroids, confetti, etc.) by using a particle system.

movec gif

When using this shader, "Simulation Space" in the main module and "Render Alignment" in the renderer module have to be set to "World". This is needed to calculate rotations correctly in the motion vector writer.

inspector

Also the custom vertex streams have to be set up in the following order:

  • UV (TEXCOORD0.xy)
  • Center (TEXCOORD0.zw|x)
  • Velocity (TEXCOORD1.yzw)
  • Rotation3D (TEXCOORD2.xyz)
  • RotationSpeed3D (TEXCOORD2.w|xy)

vertex streams

System requirements

  • Unity 2017.1 or later

Current limitations

In the current implementation, change of the particle size is ignored in the calculation of motion vectors. This may introduce artifacts when animating the particle size with using the "Size over Lifetime" module or the "Size by Speed" module.

How about transparency?

I haven't tried transparency with motion vectors because I think it works only if someone tweaks it very carefully (and I have no time to invest in it). I won't recommend it, but you can try it anyway.

License

Copyright (c) 2017 Unity Technologies

This repository is to be treated as an example content of Unity; you can use the code freely in your projects. Also see the FAQ about example contents.

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].