[kit] Add target and feather properties to the Parameters struct

This commit is contained in:
Eryn Wells 2017-08-24 18:35:16 -07:00
parent 859127d537
commit 6c06aadd37
2 changed files with 9 additions and 8 deletions

View file

@ -36,12 +36,14 @@ public struct Parameters {
var size = Size(width: 0, height: 0) var size = Size(width: 0, height: 0)
var numberOfBalls: UInt16 = 0 var numberOfBalls: UInt16 = 0
let unused1: UInt16 = 0xAB private var _colorStyle = ColorStyle.singleColor.rawValue
let unused2: UInt32 = 0xCDEF
let unused3: UInt16 = 0xBA /// The target sample value. Above this value results in a colored pixel; below is a dark pixel.
var target: Float = 1.0
/// The amount to feather the alpha of each ball. A value between 0.0 and 1.0.
var feather: Float = 0.0
// Color parameters // Color parameters
private var _colorStyle = ColorStyle.singleColor.rawValue
public var color0 = Float4(r: 0, g: 1, b: 0, a: 1) public var color0 = Float4(r: 0, g: 1, b: 0, a: 1)
public var color1 = Float4() public var color1 = Float4()
public var color2 = Float4() public var color2 = Float4()

View file

@ -41,11 +41,10 @@ typedef struct {
short2 size; short2 size;
ushort numberOfBalls; ushort numberOfBalls;
ushort unused1;
uint unused2;
ushort unused3;
ushort colorStyle; ushort colorStyle;
float target;
float feather;
float4 colors[4]; float4 colors[4];
} Parameters; } Parameters;