refactor(player): 调整颜色矩阵数据类型为float32并优化NPC定时任务逻辑
This commit is contained in:
@@ -540,7 +540,7 @@ type GlowFilter struct {
|
||||
Color uint32 `json:"color,omitempty"`
|
||||
|
||||
// Alpha 透明度,0.0~1.0(浮点型,无法用uint8,保留float64)
|
||||
Alpha float64 `json:"alpha,omitempty"`
|
||||
Alpha float32 `json:"alpha,omitempty"`
|
||||
|
||||
// BlurX 水平模糊量,0~255(uint8),默认值 6
|
||||
BlurX uint8 `json:"blurX,omitempty"`
|
||||
@@ -559,5 +559,5 @@ type GlowFilter struct {
|
||||
|
||||
// Knockout 是否挖空,默认 false
|
||||
Knockout bool `json:"knockout,omitempty"`
|
||||
ColorMatrixFilter [20]uint8 `json:"matrix,omitempty"`
|
||||
ColorMatrixFilter [20]float32 `json:"matrix,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user