Exemplo n.º 1
0
        public GreyscaleByLuminanceFloatJob24(NativeArray <Color24> input,
                                              NativeArray <float> grayscale,
                                              Color96 weights)
        {
            InputTexture = input;
            Grayscale    = grayscale;
            if (weights.Equals(default(Color96)))
            {
                weights = LuminanceWeights.FloatNormalized;
            }

            Weights = weights;
        }
Exemplo n.º 2
0
        public Color24ToFloat3Job(NativeArray <Color24> input, NativeArray <float3> output, Color96 weights = default(Color96))
        {
            Input  = input;
            Output = output;
            if (weights.Equals(default(Color96)))
            {
                weights = LuminanceWeights.FloatNormalized;
            }

            Weights = weights;
        }
Exemplo n.º 3
0
 public void SetWeight(Color96 weight)
 {
     Weights = weight;
 }