void Start() { if (fadeControl == null) { fadeControl = new NprFadeControl(); } }
public void copy(NprFadeControl other) { this.focus = other.focus; this.maxValue = other.maxValue; this.changeSpeed = other.changeSpeed; this.levels = other.levels; this.bothDirections = other.bothDirections; this.fadeType = other.fadeType; }
void Update() { effects = gameObject.GetComponent <NprEffects>(); fadeControlEdges = effects.fadeControlEdges; fadeControlSimplification = effects.fadeControlSimplification; fadeControlDesaturation = effects.fadeControlDesaturation; fadeControlEdges.copy(fadeControl); fadeControlSimplification.copy(fadeControl); fadeControlDesaturation.copy(fadeControl); }
public void Init(NprFadeControl fadeControl) { IsSupported(); string [] shaderNames = { "Hidden/NPR/RGBToHSV", "Hidden/NPR/Desaturate", "Hidden/NPR/HSVToRGB", }; InitMaterials(shaderNames); this.fadeControl = fadeControl; }
public void Init(NprEdgeSettings edgeSettings, NprFadeControl fadeControl) { useHDRTemporaries = true; IsSupported(); string [] shaderNames = { "Hidden/NPR/EdgeFlowField", "Hidden/NPR/GeometricEdge", "Hidden/NPR/DOGEdge", "Hidden/NPR/CombineEdges" }; InitMaterials(shaderNames); this.fadeControl = fadeControl; this.edgeSettings = edgeSettings; }
public void Init(NprSimplificationSettings simplificationSettings, NprFadeControl fadeControl) { useHDRTemporaries = true; IsSupported(); string [] shaderNames = { "Hidden/NPR/RGBToCIELab", "Hidden/NPR/CIELabToRGB", "Hidden/NPR/SimplificationSmooth", "Hidden/NPR/SimplificationGradient", "Hidden/NPR/SimplificationQuantize" }; InitMaterials(shaderNames); this.simplificationSettings = simplificationSettings; this.fadeControl = fadeControl; }