@v12-engine/client/lite-views
Classes
| Name | What |
|---|---|
| CameraMaths beta | The matrices of one camera at one size of its view, and what is asked of them: update works them out, the rest read them |
| FogField beta | The fog of war as a field of brightness a cell, softened at its edges and eased in time, written into the renderer's fogOfWar a square at a time: the CPU half of the client's FogRenderer |
| FoliageView beta | A layer's grass and bushes as drawn: what a game's code reaches through the layer's part. See the file's comment |
| FxView beta | The effects of a world on the renderer: the game's by name, played, followed and ended. Made by FxView.create, or by createWorldFx for a world's |
| GroundView beta | The ground of a terrain on this renderer, redrawn as the terrain changes: the client's TerrainView member for member, its cliffs, rocks, water and waterfalls |
| LineStream beta | Lines in the world a few pixels wide whatever their distance, said again every frame: clear, line…, flush |
| LiteAnimator beta | Plays the animations of one unit: a loop for what it keeps doing, like standing or walking, and on top of that what it does once, like a swing, after which it goes back to the loop. |
| LiteCellLayers beta | The game's layers of cells on this renderer, the client's CellLayerViews with its rules: each layer's parts made, told of what changed and of every frame, and disposed (what fills LiteWorldView's LayersSlot) |
| LiteFloatWorld beta | The plates and the texture of layers of the floats drawn in the world of one scene (the client's FloatWorld): made as they are first needed, a layer kept for the next float, gone with dispose |
| LiteScreenPass beta | The screen's frame on this renderer, the client's ScreenPass member for member: the cinematic's state, the client's fade and frame, the look, written each frame into the renderer's ScreenStages |
| LiteTransitionPass beta | The transitions between a cinematic's shots on this renderer, the client's TransitionPass as the cinematics use it: played on the renderer's ScreenStages over the kept frame or a live view from the old shot |
| LiteWorldView beta | The world as it is drawn on this renderer, without a game: the client's WorldView with its surface, its parts made in its order from a map and a game's view (see the top of this file) |
| ModelPreviews beta | Small pictures of models, for choosing between them, like the kinds of tree in the editor: each stood alone in a side view of the renderer, drawn once and read back, one at a time, and kept |
| PortraitStage beta | The stage the live portraits are drawn on: its boxes, each a side view on a canvas of its own (see the top of this file) |
| PoseRows beta | The poses of the units drawn with a skeleton of their own: a row a unit of a texture of floats, sent once a frame |
| RtsCamera beta | Top-down camera that looks at a point on the ground. Scrolls with the screen edges, the arrow keys and middle mouse drag, zooms with the wheel, and looks around with Q and E for as long as they are held. The keys and the button are actions (camera.left, camera.turnLeft, camera.drag…), so the player's own where there are some. |
| SceneryView beta | The scenery of a map on this renderer, the client's DoodadView for scenery that stands still: each doodad a copy or merged by chunk, at a level of detail by its distance (see the top of this file) |
| Skeleton beta | One unit's skeleton: its pose, and the players of its clips |
| UnitModels beta | The units' models on the renderer: each loaded once for its key, its batches drawn for every unit of it |
| UnitsView beta | The units and buildings of a game on the renderer: one record each, placed every frame between the last two snapshots and drawn with its parts or its model |
| ViewTimers beta | Timers and tweens of a view, stepped by seconds as the frame runs: after and every call back, a tween drives a value over time with an Ease |
Interfaces
| Name | What |
|---|---|
| DrawKit beta | The drawing a game's own looks of parts ask for: sets of a solid's copies, with no renderer's types in it |
| DrawnCopy beta | A copy of a shape set: put somewhere, given its colour, taken away |
| KitDraw beta | What a game's own renderers draw with on this renderer: shapes at their own sizes, each in a colour of its copy's (LiteRenderKit.draw) |
| LineStreamOptions beta | How a stream of lines is made |
| ModelInfo beta | What there is in a model file (ModelPreviews.info): the client's ModelInfo |
| ModelPoint beta | A place on a model: the joint that carries it (-1: none, it stands on the model), and where it is bound to it |
| PickHit beta | What a ray hit by its triangles |
| PickRay beta | A ray as a pick by box takes it (DoodadView.boxHit, EntityRenderer.staticBoxHit): where it starts and which way it goes, of length 1 (a distance along it is in the world's units). A Babylon Ray is one |
| Rig beta | A file's nodes that move a skin, parents first: their pose at rest and each joint's inverse bind |
| ShapeSet beta | Every copy of a solid drawn one way (DrawKit.shape): one batch |
| SkeletonClip beta | The tracks of an animation of a file, shared by every unit of the rig |
| Track beta | The keys of a clip for one node's place, turn or size |
| UnitModel beta | A unit's model on the card: its rig, its clips, its pieces and their batches |
| ViewCamera beta | A camera as any pass draws with it and as the maths here reads it |
| WorldFx beta | The effects, the sky and the weather of a world, made by createWorldFx: each part, and what the world is given of them (parts, slot) |
Functions
| Name | What |
|---|---|
| backdropOf beta | The colour behind everything a map's look asks for at first (no hour's): the renderer's clearColour |
| boxEdges beta | The twelve edges of a box given by its least and greatest corners, as segments' ends: 24 points, three numbers each. With matrix (the engine's layout, sixteen floats) the corners are turned and placed by it first |
| clipsOnto beta | The animations of a file laid on a model's rig by its nodes' names (a rig's file of clips, asset.extras.clips, ModelDef.clipsFile): a track on a node the rig has not got is passed by |
| composeInto beta | A node's matrix from its size, its turn and its place, into out at at |
| createDrawKit beta | A draw kit on the renderer |
| createKitDraw beta | A kit of shapes on a renderer: what LiteRenderKit.draw is |
| createLiteWorldView beta | Shows a map on a renderer: the world as a game's client draws it (LiteWorldView), for the caller to draw its own over |
| createWorldFx beta | Makes a world's effects, sky, clouds, weather, map effects and decals, before the world: bound to it when it fills its slot (WorldFx.slot) |
| fitAboutHit beta | A clip timed about its blow (ModelDef.hitAt of its length): the part before the blow fitted to the windup (hit seconds), the part after to after seconds (the recovery, or the rest of the attack's period), each as fast as that takes within FIT_LIMITS. Gives the speed of each part, the seconds to the blow and to the end as played, and whether a part had to be held within the limits |
| fxLength beta | How long an effect lasts by itself, in seconds: its length, or its parts' that end; Infinity when one never does |
| groundPaint beta | Paints a layer of cells into the ground, as a part of its look (GameView.ground.cellLayers): drawn with the ground, lit and fogged as it is, under everything that stands on it. The undead's blight, a burnt patch, a magic circle. A ready-made part, which a game takes or leaves: { blight: groundPaint({ texture, color }) } |
| hitAtOf beta | Where the blow lands in a clip, as a share of it: its hit mark (ClipDef.marks), else two fifths in |
| maskOf beta | A mask as a player takes it: 1 for each node of the rig whose name is kept |
| modelBounds beta | The box of a model's rest under its unit's matrix (16 floats): its file's box, each corner placed |
| modelPicture beta | A picture of a model as the editor's Content keeps them (ModelPictures.draw): 160 pixels, see-through round it, from the front and above, the model turned as it says; a WebP unless asked. Nothing where it cannot be drawn |
| notYet beta | Says once that something is not on the renderer's path yet |
| notYetPart beta | A part of the client that is not there yet, under its name: what known has is itself; anything else read of it is a function that does nothing and gives nothing, said once by its name the first time it is read. It is no promise (then is not there), so what awaits it goes on |
| partLife beta | Seconds a part of an effect lasts, what its ParticleDef.over goes over |
| partStart beta | Seconds into an effect a part starts: its at, after the mark it waits for where marks has it |
| pickLevel beta | The last level that applies at a distance, with the hold: scale multiplies every from (the quality's, the map's) |
| pointInto beta | Where a place is in the world: by its joint's matrix in a row of poses (row: sixteen floats a joint from at), then the model's own matrix in the world (model, a point a row before it). Into out |
| pointOn beta | A place of a model by its name: a point its look declares, else a node of its file. Nothing where it is neither. further: so much more from there in the node's own units, along its own axes as the model turns it (a streak's offset toward a blade's tip: the client's offset through the node's world matrix) |
| posedWorlds beta | Every node's matrix in the model's space for a pose, into the shared worlds (16 floats a node): valid until the next call |
| refusedScreenProcess beta | What a game's screen pass of its own is told on this renderer: it was Babylon's post-process, and is not drawn |
| shadowLevel beta | The level a thing's shadow is drawn at, drawn at level: as the level says, else as many coarser as the bias, never nothing nor a picture by the bias. -1 for none. A picture casts its own card's |
| solid beta | A solid, a unit across: made once |
| unitFigures beta | Figures of units for a portrait stage: a model with its skeleton and clips, or a type's parts |
| visualsOf beta | What an entity looks like, by the look of the type it is drawn as (the client's typeDrawnAs: the type a buff it carries draws it as, polymorphs, the one it looks like, its likeness, or its own): itself, or, for a look of several models, a look of the one model the entity is drawn with (made once a model), standing as vary says |
| writeLine beta | Writes a segment's record at its place among the records: from a to b, width pixels wide, of a colour (0 to 1 each) and how opaque |
Values
| Name | What |
|---|---|
| CLIP_FPS beta | Frames a second a file's keys are counted in (Babylon's loader's) |
| CLOUD_LAYER beta | The cloud layer's defaults: how high, how big a cloud, how much is cloud, how much it shows, how soft a patch's edge |
| CLOUD_VOLUME beta | The volume's defaults: how tall the clouds are, in cells |
| CUBIC beta | Keys on a cubic spline of the file's, a way in and a way out at each (Track.mode) |
| DEBUG_VIEWS beta | Every debug view on this renderer, as the debug panel lists them: the most used first |
| LINE_FLOATS beta | Floats a segment's record takes: an end and the width, the other end, the colour and how opaque |
| LINEAR beta | Keys gone between straight (Track.mode): turns by slerp |
| MADE_HERE beta | A lighter level made in the page is drawn from a file of this name: its model's, this, and the part it keeps (the client's MADE_HERE) |
| MODEL_BINDINGS beta | What a material of UNIT_MODEL binds: its block of uniforms (look), the poses' texture, its picture and the picture's sampler |
| PART_BINDINGS beta | What a material of UNIT_PARTS binds of its own: nothing, a copy carrying its colour |
| PART_SHADOWS beta | The small parts' shadows as the client leaves them: no larger than 2 across, none past 70 from the eye, over the last 10 |
| POSE_FLOATS beta | Floats of a node's pose: its place (3), its turn (4: x, y, z, w), its size (3) |
| ROTATION beta | A track of a node's turn (Track.path) |
| STEP beta | Each key held until the next (Track.mode) |
| SUN_AROUND beta | Where the sun is when the map does not say: degrees around from north |
| SUN_UP beta | Where the sun is when the map does not say: degrees up from the horizon |
| TRANSLATION beta | A track of a node's place (Track.path) |
| UNIT_MODEL beta | A model moved by a skeleton. Streams: normal, uv, joints (four joints a vertex, a byte each) and weights (a byte each, the four summing to 255: quantizedSkin): 8 bytes a vertex for the two, where floats were 32. Flags: baked, cutout, dither, reveal, team, shine (an emissive picture: one binding more, shinePicture), normal (a normal map: normalPicture, binding 5, its way from the picture's frame across the surface), blend (a material less than opaque: blended over what is behind it, how opaque its surface's third times how much of the copy is there, not dithered; out of the velocity) |
| UNIT_PARTS beta | A part of a unit: a solid in a colour of its copy's. Stream: normal. Flags: dither, reveal, unlit. A copy that is not all there casts its whole shadow (the client's see-through leaves the shadows be) |
Types
| Name | What |
|---|---|
| DebugViewKind beta | A debug view on this renderer (LiteDebugViews.show) |
| LiteLayerFactories beta | What a layer is drawn with, as a game's view gives it: one part or several |
| UnitVisual beta | A unit's or a building's look as the renderer's units draw it: the look itself (UnitLook) |
Namespaces
| Name | What |
|---|---|
| mat4 |