shader
push_blur
这个API玩家必须在hud中开启shader才能生效
shader.push_blur()
pop_blur
这个API玩家必须在hud中开启shader才能生效
shader.pop_blur(int radius)
blur示例:
shader.push_blur()
render.rect(2.0, 12.0, 60.0, 60.0, -16777216)
shader.pop_blur(8)
round_rect
shader.round_rect(float x, float y, float width, float height, int radius, int color)
gradient_rect
shader.gradient_rect(float x, float y, float width, float height, int color, int color2)
vertical_gradient_rect
shader.vertical_gradient_rect(float x, float y, float width, float height, int color, int color2)
push_gradient
shader.push_gradient(int bottomLeft, int topLeft, int bottomRight, int topRight)
pop_gradient
shader.pop_gradient()
circle
shader.circle(float x, float y, float radius, float feather, int color, float diameter_width, int diameter_color)