0.5.0 • Published 3 years ago

@oasis-engine/mars v0.5.0

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Oasis Mars

npm-size npm-download

This is a mars runtime created by oasis engine.

Badges

TNPM version TNPM downloads


Usage

import { MarsComponent, MarsResource } from "@oasis-engine/mars";

const renderer = entity.addComponent(MarsComponent);
const marsJson = 'https://gw.alipayobjects.com/os/gltf-asset/o3-e/RVITQTIWPTYE/-2123982445-2341f.json';
MarsResource.loadSceneAsync(marsJson, {}, engine.resourceManager).then((resource) => {
  renderer.resource = resource;
  renderer.play();
});

Install

tnpm i @oasis-engine/mars --save

Dev

1、Clone this repository and install the dependencies:

tnpm i

2、Run the example:

tnpm run example

License

MIT

0.5.0

3 years ago

0.5.0-alpha.0

3 years ago

0.4.0

3 years ago

0.1.0

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.10-0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago