Fixed issues from merging

This commit is contained in:
Lucas Dower 2022-11-13 02:13:21 +00:00
parent f015f3f747
commit 49b8436f0f
No known key found for this signature in database
GPG Key ID: B3EE6B8499593605
4 changed files with 5 additions and 3 deletions

View File

@ -20,7 +20,6 @@ import { ColourSpace, EAction } from './util';
import { ASSERT } from './util/error_util';
import { LOG_ERROR, Logger } from './util/log_util';
import { AppPaths, PathUtil } from './util/path_util';
import { TWorkerJob, WorkerController } from './worker_controller';
import { SetMaterialsParams, TFromWorkerMessage, TToWorkerMessage } from './worker_types';
@ -194,7 +193,7 @@ export class AppContext {
this._materialMap = payload.result.materials;
this._onMaterialMapChanged();
if (payload.result.triangleCount < AppConfig.RENDER_TRIANGLE_THRESHOLD) {
if (payload.result.triangleCount < AppConfig.Get.RENDER_TRIANGLE_THRESHOLD) {
outputElement.setTaskInProgress('render', '[Renderer]: Processing...');
this._workerController.addJob(this._renderMesh());
} else {

View File

@ -6,6 +6,7 @@ import { Mesh, SolidMaterial, TexturedMaterial } from './mesh';
import { OcclusionManager } from './occlusion';
import { ProgressManager } from './progress';
import { AttributeData } from './render_buffer';
import { ASSERT } from './util/error_util';
import { Vector3 } from './vector';
import { VoxelMesh } from './voxel_mesh';
import { RenderNextVoxelMeshChunkParams } from './worker_types';
@ -70,7 +71,7 @@ export class ChunkedBufferGenerator {
for (let i = 0; i < numBufferVoxels; ++i) {
const voxelIndex = i + voxelsStartIndex;
const voxel = voxels[voxelIndex];
const voxelColourArray = [voxel.colour.r, voxel.colour.g, voxel.colour.b, voxel.colour.a];
const voxelPositionArray = voxel.position.toArray();

View File

@ -42,6 +42,7 @@ export namespace RGBAUtil {
export function toUint8String(a: RGBA) {
return `(${Math.floor(255 * a.r)}, ${Math.floor(255 * a.g)}, ${Math.floor(255 * a.b)}, ${Math.floor(255 * a.a)})`;
}
export function toRGBA255(c: RGBA): RGBA_255 {
const out: RGBA = {

View File

@ -644,6 +644,7 @@ a:hover {
appearance: none;
background: none;
width: 75%;
height: 24px;
margin: 0px;
padding: 0px;
}