Exemplo n.º 1
0
 void Start()
 {
     if (fadeControl == null)
     {
         fadeControl = new NprFadeControl();
     }
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
    void Update()
    {
        effects                   = gameObject.GetComponent <NprEffects>();
        fadeControlEdges          = effects.fadeControlEdges;
        fadeControlSimplification = effects.fadeControlSimplification;
        fadeControlDesaturation   = effects.fadeControlDesaturation;

        fadeControlEdges.copy(fadeControl);
        fadeControlSimplification.copy(fadeControl);
        fadeControlDesaturation.copy(fadeControl);
    }
Exemplo n.º 4
0
 public void Init(NprFadeControl fadeControl)
 {
     IsSupported();
     string [] shaderNames =
     {
         "Hidden/NPR/RGBToHSV",
         "Hidden/NPR/Desaturate",
         "Hidden/NPR/HSVToRGB",
     };
     InitMaterials(shaderNames);
     this.fadeControl = fadeControl;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 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;
 }