From 0d878b63b170d68240983276f951cac7551c0b54 Mon Sep 17 00:00:00 2001 From: LH Date: Thu, 12 Dec 2019 16:45:37 +0800 Subject: [PATCH] Added adaptor (not implement yet.) --- Runtime/OilPaintingAdaptor.cs | 92 ++++++++++++++++++++++++++++++ Runtime/OilPaintingAdaptor.cs.meta | 11 ++++ 2 files changed, 103 insertions(+) create mode 100644 Runtime/OilPaintingAdaptor.cs create mode 100644 Runtime/OilPaintingAdaptor.cs.meta diff --git a/Runtime/OilPaintingAdaptor.cs b/Runtime/OilPaintingAdaptor.cs new file mode 100644 index 0000000..5449335 --- /dev/null +++ b/Runtime/OilPaintingAdaptor.cs @@ -0,0 +1,92 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; + +namespace Flockno +{ + //[RequireComponent(typeof(Flockaroo.OilPaintingEffect))] + public class OilPaintingAdaptor : MonoBehaviour + { + /* + [System.Serializable] + public class Parameters + { + [Header("Common")] + + [Range(0.0f, 1.0f)] + public float EffectFade = 0.0f; + [Range(0.0f, 1.0f)] + public float PanFade = 0.0f; + + [Header("Source")] + + [Range(0.0f, 2.0f)] + public float SrcBright = 1.0f; + [Range(0.0f, 2.0f)] + public float SrcContrast = 1.4f; + [Range(0.0f, 4.0f)] + public float SrcColor = 1.0f; + [Range(0.0f, 1.0f)] + public float SrcBlur = 0.0f; + + [Header("Effect")] + + [Range(0.0f, 1.0f)] + public float BrushDetail = 0.1f; + [Range(0.0f, 1.0f)] + public float BrushFill = 0.5f; + [Range(5000, 200000)] + public int NumStrokes = 0x8000; + [Range(0.5f, 0.95f)] + public float LayerScale = 0.8f; + [Range(0.0f, 1.0f)] + public float Canvas = 0.4f; + [Range(0.0f, 100.0f)] + public float FlickerFreq = 15.0f; + [Range(0.0f, 1.0f)] + public float FlickerStrength = 0.0f; + [Range(0.0f, 360.0f)] + public float LightAng = 135.0f; + [Range(0.0f, 90.0f)] + public float LightOffs = 60.0f; + [Range(0.0f, 1.0f)] + public float PaintDiff = 0.15f; + [Range(0.0f, 1.0f)] + public float PaintSpec = 0.15f; + [Range(0.0f, 1.0f)] + public float PaintShiny = 0.5f; + [Range(0.0f, 2.0f)] + public float ColorSpread = 0.0f; + [Range(0.0f, 120.0f)] + public float ScreenFOV = 0.0f; + [Range(0.0f, 360.0f)] + public float StrokeAng = 0.0f; + [Range(-1.0f, 1.0f)] + public float StrokeBend = -1.0f; + [Range(0.0f, 1.0f)] + public float StrokeDir = 0.0f; + [Range(0.0f, 1.0f)] + public float StrokeContour = 1.0f; + [Range(0.0f, 16.0f)] + public float MultiStroke = 6.0f; + [Range(0.0f, 100000.0f)] + public float strokeSeed = 10.0f; + [Range(0.0f, 1.0f)] + public float Vignette = 1.0f; + } + + Flockaroo.OilPaintingEffect effect; + */ + // Start is called before the first frame update + void Start() + { + //effect = GetComponent(); + } + + // Update is called once per frame + void Update() + { + + } + } +} \ No newline at end of file diff --git a/Runtime/OilPaintingAdaptor.cs.meta b/Runtime/OilPaintingAdaptor.cs.meta new file mode 100644 index 0000000..90aee03 --- /dev/null +++ b/Runtime/OilPaintingAdaptor.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 89f320075079ce14b95502f8c1d4456d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: