[kit] Pass target and feather values into the shaders
This commit is contained in:
parent
6c06aadd37
commit
0b752984dc
4 changed files with 134 additions and 20 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue