Add color rotation matrix to Parameters

This commit is contained in:
Eryn Wells 2018-10-09 11:57:35 -07:00
parent 0844fbc010
commit d3190dd7e7
3 changed files with 13 additions and 3 deletions

View file

@ -49,6 +49,8 @@ public struct Parameters {
public var color2 = Float4()
public var color3 = Float4()
public var colorRotation = Matrix2x2(1.0)
public var colorStyle: ColorStyle {
get {
return ColorStyle(rawValue: _colorStyle)!
@ -234,9 +236,6 @@ public class Field {
var r = ball.radius
ptr = write(value: &r, to: ptr)
ptr = ptr.advanced(by: 4) // Skip 4 bytes to maintain alignment.
// if idx == 0 {
// print("Populated ball \(idx): x:\(ball.position.x), y:\(ball.position.y), r:\(r)")
// }
idx += 1
}
}