Update colors

This commit is contained in:
schmelczerandras 2020-07-25 17:16:48 +02:00
commit 9aef368324

View file

@ -1,12 +1,18 @@
import { vec3 } from 'gl-matrix';
import { vec2, vec3 } from 'gl-matrix';
import { ObjectContainer } from '../object-container';
import { Camera } from '../types/camera';
import { Character } from '../types/character';
import { CursorLight } from '../types/cursor-light';
import { CircleLight } from '../types/circle-light';
export const createCharacter = (objects: ObjectContainer) => {
const camera = new Camera();
const light = new CircleLight(
vec2.create(),
40,
vec3.fromValues(0.67, 0.0, 0.33)
);
const camera = new Camera(light);
objects.addObject(light);
objects.addObject(camera);
objects.addObject(new Character(camera));
objects.addObject(new CursorLight(40, vec3.fromValues(0.67, 0.67, 0.33)));
};