diff options
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -250,6 +250,8 @@ pub fn build(b: *std.Build) void { if (is_emscripten) { ui_mod.addAnonymousImport("ui.vert.es.glsl", .{ .root_source_file = b.path("shaders/ui.vert.es.glsl") }); ui_mod.addAnonymousImport("ui.frag.es.glsl", .{ .root_source_file = b.path("shaders/ui.frag.es.glsl") }); + ui_mod.addAnonymousImport("overlay.vert.es.glsl", .{ .root_source_file = b.path("shaders/overlay.vert.es.glsl") }); + ui_mod.addAnonymousImport("overlay.frag.es.glsl", .{ .root_source_file = b.path("shaders/overlay.frag.es.glsl") }); } else { // GLSL -> SPIR-V at build time, embedded into ui_sdl.zig via @embedFile. ui_mod.addAnonymousImport("ui.vert.spv", .{ @@ -258,6 +260,12 @@ pub fn build(b: *std.Build) void { ui_mod.addAnonymousImport("ui.frag.spv", .{ .root_source_file = compileGlsl(b, "shaders/ui.frag.glsl", "fragment", "ui.frag.spv"), }); + ui_mod.addAnonymousImport("overlay.vert.spv", .{ + .root_source_file = compileGlsl(b, "shaders/overlay.vert.glsl", "vertex", "overlay.vert.spv"), + }); + ui_mod.addAnonymousImport("overlay.frag.spv", .{ + .root_source_file = compileGlsl(b, "shaders/overlay.frag.glsl", "fragment", "overlay.frag.spv"), + }); } } @@ -431,6 +439,7 @@ pub fn build(b: *std.Build) void { \\ image-rendering: crisp-edges; image-rendering: pixelated; \\ -ms-interpolation-mode: nearest-neighbor; \\ transform: translateZ(0); backface-visibility: hidden; } + \\ touch-action: none; } \\ </style> \\</head> \\<body> |
