Removed unused imports

This commit is contained in:
Lucas Dower 2022-04-20 18:14:06 +01:00
parent 5c293e703d
commit fd3330b383
3 changed files with 3 additions and 8 deletions

View File

@ -1,11 +1,10 @@
import { RenderBuffer, AttributeData } from './buffer';
import { AttributeData } from './buffer';
import { AppConstants } from './constants';
import { GeometryTemplates } from './geometry';
import { HashMap } from './hash_map';
import { Mesh } from './mesh';
import { OcclusionManager } from './occlusion';
import { TextureFiltering } from './texture';
import { ASSERT, Bounds, RGB } from './util';
import { Bounds, RGB } from './util';
import { Vector3 } from './vector';
export interface Voxel {

View File

@ -6,7 +6,6 @@ import { Triangle, UVTriangle } from '../triangle';
import { Bounds, RGB, UV } from '../util';
import { Vector3 } from '../vector';
import { IVoxeliser } from './base-voxeliser';
import { DebugGeometryTemplates } from '../geometry';
/**
* This voxeliser works by projecting rays onto each triangle
@ -54,9 +53,7 @@ export class NormalCorrectedRayVoxeliser extends IVoxeliser {
rayList.forEach((ray) => {
const intersection = rayIntersectTriangle(ray, triangle.v0, triangle.v1, triangle.v2);
if (intersection) {
const intersectionWorld = Vector3.divScalar(intersection, this._scale);
if (intersection) {
// Move transition away from normal
const norm = normals.v0.normalise();
intersection.sub(Vector3.mulScalar(norm, 0.5));

View File

@ -6,7 +6,6 @@ import { Triangle, UVTriangle } from '../triangle';
import { Bounds, RGB, UV } from '../util';
import { Vector3 } from '../vector';
import { IVoxeliser } from './base-voxeliser';
import { DebugGeometryTemplates } from '../geometry';
/**
* This voxeliser works by projecting rays onto each triangle