浏览代码

Updated Readme + Added OpticalFlow handling in PostProcessor

/main
Thomas ICHÉ 6 年前
当前提交
2f771d8b
共有 4 个文件被更改,包括 29 次插入3 次删除
  1. 5
      Editor/Examples/ImageSequencerSourcePostprocessor.cs
  2. 13
      README.md
  3. 7
      LICENSE.md.meta
  4. 7
      README.md.meta

5
Editor/Examples/ImageSequencerSourcePostprocessor.cs


public const string m_RootFolder = "Assets/VFXResources";
public const string m_NormalNomenclaturePostFix = "_nrm";
public const string m_LinearNomenclatureSuffix = "_lin";
public const string m_OpticalFlowNomenclatureSuffix = "_of";
public readonly string[] m_Labels = new string[] { "Weapon", "Audio" };
void OnPreprocessTexture()

// if containing linear suffix, switch to linear
if (filename.ToLower().Contains(m_LinearNomenclatureSuffix.ToLower()))
usage = Usage.LinearData;
// if containing opticalflow suffix, switch to linear
if (filename.ToLower().Contains(m_OpticalFlowNomenclatureSuffix.ToLower()))
usage = Usage.LinearData;
// if HDR, switch to linear

13
README.md


# VFXToolbox
Additional tools for Visual Effect Artists.
#### Local Package Install :
* Install Unity 2018.3 and run it for your project
* Install Unity 2018.3 or newer and run it for your project
* Navigate to the com.unity.vfx-toolbox directory then open the `package.json` file.
* Navigate to the root of the repository directory then open the `package.json` file.
#### Git Reference Install (Package will be available as read-only):
* Install Unity 2018.3 or newer
* Open your project's `Packages/manifest.json` file with a text editor
* Add the following line to `dependencies` list : `"com.unity.vfx-toolbox": "https://github.com/Unity-Technologies/VFXToolbox.git",`
You should be good to go!

7
LICENSE.md.meta


fileFormatVersion: 2
guid: 7cf3b30f4f14f8a47b202d4a1aef3355
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

7
README.md.meta


fileFormatVersion: 2
guid: 1bcfcb9d3a3f1854080c5126fbbfac4d
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存