Grids now render properly at large zoom levels

This commit is contained in:
Yousef Khadadeh 2025-09-13 14:31:29 +03:00
parent 8cb89c40d6
commit ad4e5af294
3 changed files with 62 additions and 30 deletions

View file

@ -18,7 +18,7 @@ class WorldGrid {
bool visible = true;
WorldVec offset{0, 0};
private:
static sk_sp<SkShader> get_shader(GridType gType, const SkColor4f& gridColor, float gridScale);
static sk_sp<SkShader> get_shader(GridType gType, const SkColor4f& gridColor, float gridScale, const Vector2f& gridClosestPoint, float gridPointSize);
static sk_sp<SkRuntimeEffect> compile_effect_shader_init(const char* shaderName, const char* shaderCode);
static Vector2f oldWindowSize;
static sk_sp<SkRuntimeEffect> circlePointEffect;