Mefodei / Animation-Texture-Baker

頂点の位置と法線を、Texture2Dに保存しておく。ARGBFloatとか、HDR Textureを使用したバージョン

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Animation Texture Baker for Unity

Description

  • Bake vertex of Animation(legacy) to Texture2D
  • Bake data of Positions and Normals

  • Original GameObject has Animation Component, SkinnedMeshRenderer, Bones.
  • Convert Animation-Data to Texture2D.

data of Positions.

data of Normals.

Converted, has only one GameObject.

running.

Animation Texture Baker

  • C# script(for setup)
  • ComputeShader(Texture Generator)
  • Shader(Texture Animation Player)

Shader Graph

  • Assets/ShaderGraph
  • Need to edit the mesh at runtime..
    • Vertex index data is being copied to mesh.uv1 by script

Horse

horse is from Unity AssetStore. big up

About

頂点の位置と法線を、Texture2Dに保存しておく。ARGBFloatとか、HDR Textureを使用したバージョン

License:MIT License


Languages

Language:C# 73.4%Language:ShaderLab 23.6%Language:HLSL 2.9%