[kit] Pass target and feather values into the shaders

This commit is contained in:
Eryn Wells 2017-08-25 11:19:09 -07:00
parent 6c06aadd37
commit 0b752984dc
4 changed files with 134 additions and 20 deletions

View file

@ -293,6 +293,17 @@ public class Field {
didChange = true
}
if let target = userInfo["target"] as? Float {
parameters.target = target
defaults.target = target
didChange = true
}
if let feather = userInfo["feather"] as? Float {
parameters.feather = feather
defaults.feather = feather
didChange = true
}
if didChange {
populateParametersBuffer()
}