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; }
public GreyscaleByLuminanceFloatJob24(NativeArray <Color24> input, NativeArray <float> grayscale, Color96 weights) { InputTexture = input; Grayscale = grayscale; if (weights.Equals(default(Color96))) { weights = LuminanceWeights.FloatNormalized; } Weights = weights; }