All Projects → keijiro → InstancedMotionVector

keijiro / InstancedMotionVector

Licence: other
Shows how to support rendering per-instance motion vectors within Indirect instanced drawing of Unity.

Programming Languages

C#
18002 projects
HLSL
714 projects
ShaderLab
938 projects

Projects that are alternatives of or similar to InstancedMotionVector

notebookdrawings-shader-unity
Unity3D port of the excellent 'notebook drawings' post-processing shader by flockaroo.
Stars: ✭ 34 (-24.44%)
Mutual labels:  shader
WernessDithering
Copy of dithering code by Brent Werness (Koloth) invented for Obra Dinn
Stars: ✭ 24 (-46.67%)
Mutual labels:  shader
GodotTerrainEditorPainter
Heightmap based terrain editor plugin for GODOT with vertex color based terrain shader painting
Stars: ✭ 23 (-48.89%)
Mutual labels:  shader
unity-surfaceshader-flipbook
Surface shaders with flipbook / spritesheet animation functionality
Stars: ✭ 43 (-4.44%)
Mutual labels:  shader
ProjectKaya
Project Kaya for mobile game platform
Stars: ✭ 324 (+620%)
Mutual labels:  shader
UnityRaymarchingForward
Example of raymarching in forward rendering for Unity
Stars: ✭ 17 (-62.22%)
Mutual labels:  shader
ada
A general porpose OpenGL app library
Stars: ✭ 105 (+133.33%)
Mutual labels:  shader
UnityPseudoInstancedGPUParticles
GPU Particles w/ Screen Space Collision Example.
Stars: ✭ 99 (+120%)
Mutual labels:  shader
Height-Based-Gradient-Color-Shaders-for-Unity
Height Based 2 color gradient shaders for Unity
Stars: ✭ 18 (-60%)
Mutual labels:  shader
VoxelTerrain
This project's main goal is to generate and visualize terrain built using voxels. It was achieved using different approaches and computing technologies just for the sake of performance and implementation comparison.
Stars: ✭ 37 (-17.78%)
Mutual labels:  post-processing
Mesh-Animation
Fast GPU vertex shader based animation library for Unity (VAT, Vertex Animation Texture, Morphing Animation)
Stars: ✭ 113 (+151.11%)
Mutual labels:  shader
NNAOTest
Neural Network Ambient Occlusion for Unity
Stars: ✭ 72 (+60%)
Mutual labels:  shader
DeepShadowMap
Real-Time Deep Shadow Maps for Unity3D
Stars: ✭ 36 (-20%)
Mutual labels:  shader
card-game-GLSL
card game in the single GLSL shader
Stars: ✭ 20 (-55.56%)
Mutual labels:  shader
UnityVolumeRendering
A simple example of Volume Rendering for Unity.
Stars: ✭ 139 (+208.89%)
Mutual labels:  shader
Robust-and-efficient-post-processing-for-video-object-detection
No description or website provided.
Stars: ✭ 107 (+137.78%)
Mutual labels:  post-processing
unity-water-shader2d
A 2D water shader for Unity
Stars: ✭ 91 (+102.22%)
Mutual labels:  shader
ios-spritekit-shader-sandbox
👾 Collection of custom effects for SpriteKit implemented using GLSL/Metal shaders.
Stars: ✭ 63 (+40%)
Mutual labels:  shader
mpsl
Shader-Like Mathematical Expression JIT Engine for C++ Language
Stars: ✭ 52 (+15.56%)
Mutual labels:  shader
PyTelTools
Python Telemac Tools for post-processing tasks (includes a workflow)
Stars: ✭ 24 (-46.67%)
Mutual labels:  post-processing

InstancedMotionVector

screenshot screenshot

This is an example that shows how to support rendering per-instance motion vectors within indirect instanced drawing of Unity.

(In this document, the term "indirect instanced drawing" refers to drawing instanced geometries with using the indirect drawing API -- specifically using Graphics.DrawMeshInstancedIndirect.)

System requirements

  • Unity 2017.2 or later

This example uses BuiltinRenderTextureType.MotionVectors that is newly introduce in Unity 2017.2, so that it only runs on 2017.2 or later versions.

How to support motion vectors within indirect instanced drawing

  • Write the MotionVectors light mode pass for the custom shader. It's recommended to use the first pass of the subshader to make it easy to refer from command buffers. ⇒ Example

  • Implement the OnRenderObject method and manually invoke the MotionVectors pass with using a command buffer. BuiltinRenderTextureType.MotionVectors can be used to set the motion vectors texture as a render target. ⇒ Example

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