Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

omega-game-engine

Latest version: v6.7.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: tugapse
6 Versions
835 Downloads

Scan summary

omega-game-engine was last scanned on 29 Nov 2026 at version 6.7.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 6 versions; the latest 5 were published within 2 days (28 and 29 Nov 2026).
  • Findings: No rules fired in version 6.7.0.
  • Downloads: 835 downloads.

Versions

6 versions published
Versions and the rules that fired in each
VersionPublishedStatus
6.7.0 LATEST 29 Nov 2026 No rules fired
6.5.0 28 Nov 2026 No rules fired
6.4.0 28 Nov 2026 No rules fired
6.3.0 28 Nov 2026 Not shown
6.2.0 28 Nov 2026 Not shown

No rules fired in 6.7.0

Findings

Findings for v6.7.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 6.7.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Omega Game Engine

TypeScript WebGL2 game engine used by the Omega editor (omega-editor) and by the users' game scripts (compiled by omega-code-service). Published to npm as omega-game-engine.

Build and test

npm install
npm run build        # embeds the GLSL shaders, tsc to dist/, bundles dist/omega-game-engine.d.ts
npm test             # vitest (no GPU needed)
npm run build-js     # rollup browser bundles + api-extractor
npm run build-docs   # typedoc into docs/

npm run build runs three steps:

  1. embed-shaders turns src/shaders/glsl/** into src/shaders/embedded-shaders.ts, so the engine never fetches shaders from the host app.
  2. tsc writes dist/ (index.js + per-file .d.ts).
  3. build:types writes dist/omega-game-engine.d.ts, a single-file typings bundle. The code service wraps it in an ambient module for user scripts and for the code editor.

While developing with the editor, install the local build there with npm install --no-save ../omega-engine, then restart ng serve and clear .angular/cache.

Playground

npm run playground   # http://localhost:8800 (PORT=9000 for another port)

Demo scenes that run straight from src/, to try a change without another project. esbuild serves playground/ and reloads the page on every save (engine or playground). After a GLSL change, run npm run embed-shaders too.

  • Luzes: a sun, three point lights going round, a sweeping spot light, shadows, materials from matte to shiny.
  • Física: Rapier with a box pyramid, dominoes, a ramp and a kinematic paddle. Click a body to push it, or click elsewhere to throw a ball.
  • Terreno: the relief generator with trees, grass, water and fog, plus balls rolling on the heightfield colliders. Click the ground to stamp a shape.

Mouse: drag to orbit, Shift or right drag to pan, wheel to zoom. Keys: WASD to move, Q/E to go down/up, F to re-centre, R to reload the scene. The scene in the URL hash (#fisica) is kept on reload. A new scene is a DemoScene in playground/src/scenes/, added to SCENES in main.ts; playground/src/kit.ts has the controls panel and helpers for meshes and bodies. npx tsc -p playground type-checks it.

Main pieces

Area Where What it does
Engine and scenes src/engine.ts, src/entities, src/managers/scene-manager.ts Engine runs the loop. A Scene holds SceneEntity objects with behaviours. SceneManager.loadScene restores a scene from JSON, parents included.
Resources src/core/resources Resources.for(gl) returns the ResourceManager of a WebGL context. It caches textures, cubemaps, OBJ meshes and shader sources, shares in-flight loads and hands out handles (acquire / release). A ResourceLoader decides how files are fetched; the editor plugs one in for asset://<id>. A texture that fails to load becomes the magenta builtin://missing and keeps its URI.
Built-in textures builtin-textures.ts builtin://white, black, normal, missing, generated in memory.
Render pipeline src/core/render Forward pipeline, described below.
Lights src/entities/lights Ambient, directional, point and spot lights. Each light has castShadows, shadowStrength (0 to 1) and shadowDepthBias / shadowNormalBias (in shadow-map texels). Point and spot lights also have a range, where their light fades to 0.
Materials and shaders src/materials, src/shaders LitMaterial + LitShader (Blinn-Phong, normal/specular/roughness/AO/emissive maps), unlit, skybox.
Terrain src/terrain TerrainBehaviour: height chunks joined on a grid, levels of detail, a layered material placed by height and slope rules and by painting, a brush with undo, heightmaps in and out, heightfield colliders. Described below.
Physics src/physics PhysicsWorld, RigidBodyBehaviour, ColliderBehaviour over a swappable backend (RapierBackend).

Render pipeline

Each frame, RenderPipeline.draw():

  1. Builds a FrameData once: camera, visible entities by layer (opaque nearest first, skybox, transparent farthest first), lights and shadow casters.
  2. Plans the shadows (planShadows) and draws their depth into one 4096² atlas (ShadowAtlasPass):
    • 1 directional light: a 2048² tile, orthographic, following the camera up to shadowDistance and snapped to texels;
    • up to 4 spot lights: one 1024² tile each;
    • up to 2 point lights: six 512² tiles each, one per cube face. The nearest shadow-casting lights to the camera get the budget.
  3. Uploads three uniform blocks shared by every shader: CameraBlock (binding 0), LightsBlock (1, LightsUBO) and ShadowsBlock (2).
  4. Draws the scene into an off-screen RenderTarget (RGBA16F when EXT_color_buffer_float exists, otherwise RGBA8, plus a depth texture), then runs any passes added with addPass.
  5. Runs the enabled PostEffects, each reading the previous result (ping-pong between two targets). RetroEffect is the built-in one.
  6. Copies the result to the canvas with exposure, tone mapping (None, Reinhard or ACES), saturation, the sRGB gamma and contrast. Scene shaders write linear, unclamped colour; only this copy encodes it for the screen. It also writes the scene depth. Whatever the host draws afterwards, like the editor's grid and gizmos, is still hidden by the scene's objects.

Before the main camera, every other active camera with a targetTexture runs the same steps into its render texture (rendertexture://<name>, targetWidth × targetHeight). The copy goes into the texture instead of the canvas. Materials pick it up like any texture: Resources.for(gl).getTexture('rendertexture://minimap'). Each render texture keeps two targets and swaps them after each render, so a camera can see an object that shows its own texture (the object shows the previous frame).

A scene saves only RenderPipelineSettings: shadows on/off and distance, HDR, tone mapping, exposure, saturation, contrast and the retro effect. GPU objects are always rebuilt.

RenderTarget and FullscreenProgram are exported for custom passes and effects.

Terrain

A terrain is an entity with a TerrainBehaviour. Its grid (TerrainGrid) holds square chunks on a sparse grid, each (N+1)² heights in metres (N a power of two, 128 by default, over 128 m). Neighbours share their border row and every write goes to all the copies, so chunks never part; addChunk(cx, cz) copies the borders already there. Each chunk is drawn by a child entity (transient: not saved, not listed in the editor) with a TerrainChunkRenderer, which writes its vertex buffers from the heights and picks one of four levels of detail by the camera's distance; skirts hide the cracks between levels.

TerrainMaterial has up to 8 layers (TerrainLayer): a ground texture (made in code: grass, dirt, rock, snow, sand, gravel; or images), tiling, tint, and rules on height and slope with noisy edges. Each layer covers those before it where its rules hold; the painted splat (two RGBA textures per chunk) goes on top, its weights summing to how much it covers. The layers blend by the height of their textures, with triplanar mapping on steep slopes (triplanar) and a large-scale variation against tiling. All in terrain.frag; terrain-rules.ts has the same sums in TypeScript.

Editing, in world space: sculptAt (raise, lower, smooth, flatten, noise), terraceAt (flat steps), erodeAt (droplet erosion: gullies and filled hollows), paintAt (a layer, or erasing back to the rules), beginStroke / endStroke with undo / redo; rampAt (a straight slope between two points) and stampAt (a hill, crater, plateau or volcano) are one undo step each, or join the stroke that is open; bakeRules (the rules written into the painting, to touch up by hand). The same tools in terrain space are plain functions (terrain-shapes.ts, terrain-erosion.ts), testable in Node.

Relief: heightField makes a height function from the fractal relief (ReliefFieldOptions: scale, octaves, roughness, ridges, flat valleys, plus warp to twist it and island to sink the edges of an area) or from a grey image; generateFrom writes any height function into every chunk, generateRelief the plain relief; sampleField samples one for a preview. growChunk(cx, cz, height) adds a chunk filled from a height function and bent to meet the ground it touches. Heightmaps: exportHeightmap / importHeightmap (16-bit, .r16 or 8-bit PNG, smoothHeightmap for the steps of 8-bit images). Reading: heightAt, normalAt, raycast, layerWeightsAt (what the ground is at a point: the painting over the rules).

Vegetation: a TerrainVegetationBehaviour beside the terrain scatters species (defaultTrees(): pines and broadleaves) on every chunk where their layers cover the ground, by the rules and the painting, in woods and clearings, off the water. The same seed and numbers always give the same plants. A chunk is built again when its heights or painting change (not during a stroke); each chunk's plants are drawn as instances, one renderer per part and look. pushOut keeps a walker out of the trunks.

Grass: a TerrainGrassBehaviour beside the terrain grows tufts of low-poly blades (grassTuft) around the camera, where the grass layers cover the ground. The ground is cut into tiles (16 m); the tiles within radius get their tufts (grassTile, in a random order) and draw fewer of them further out (grassFalloff), so the grass thins evenly without being made again. Tiles come and go as the camera moves, one a frame, and are made again when their chunk changes. The blades sway in wind and are darker at the foot (tipShade). Set kinds (GrassKind: a tuft's shape from GrassTuftOptions — blades, segments, spread, lean, droop, blade width, height variation — its size, its colour, a darker foot and a tip colour, its share) for several kinds mixed in patches (splitGrass, patches); GRASS_PRESETS has a few (Prado, Seca, Musgo, Juncos, Outono).

Instancing: an InstancedMeshRendererBehaviour draws one mesh many times in one call. Each instance (packInstance) has a place, a turn about y, width and height scales, a tint and a phase; drawCount draws only the first ones. Shaders get them with the INSTANCED define (lit and shadow casters), WIND sways a mesh by its uv's v, GRASS darkens it towards the foot and turns its tips to tipColor. Shader.shareProgram lets many shaders with the same sources share one compiled program (grass tiles and plants use it). With a PhysicsWorld, every chunk gets a heightfield collider, made again when a stroke ends. The scene saves the settings, the material and each chunk's heights (16-bit) and painting (only when painted).

Shaders

GLSL sources live in src/shaders/glsl and are referenced by ShaderSources URIs such as assets/shaders/frag/default-lit.frag. Fragment shaders can include @INCLUDE_LIGHT_FUNC, @INCLUDE_FOG_FUNC and @INCLUDE_UTIL_FUNC. After editing a .glsl, .vert or .frag file, run npm run embed-shaders (it also runs before build).

Changes

See CHANGELOG.md.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm omega-game-engine

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Vulnerability Insights

OpenSSH Password Authentication Bypass on Alpine Linux (*sshole) – CVE-2026-123158

Frame 2085668439 (1)
Group 1261154229