import { auxiliaries, Buffer, Camera, Canvas, Context, Framebuffer, Renderbuffer, Texture2D, DefaultFramebuffer, EventProvider, Invalidate, CuboidGeometry, Navigation, Renderer, Program, Shader, Wizard, BlitPass, LabelRenderPass, Label, Position3DLabel, Projected3DLabel, FontFace, Text, } from 'webgl-operate'; import { mat4, vec4, vec3 } from 'gl-matrix'; // correct imports? import { Example } from './example'; class DefaultSceneRenderer extends Renderer { // @TODO replace cuboid with scene? // @TODO gizmo? // - SCENE - // internal protected _cuboid: CuboidGeometry; protected _texture: Texture2D; // - FRUSTUM - // internal protected _frustumData: Float32Array; protected _frustumBuffer: WebGLBuffer; protected _frustumProgram: Program; // settings protected _renderFrustumToFar = true; protected _frustumNearColor = vec3.fromValues(1.0, 1.0, 1.0); protected _frustumFarColor = vec3.fromValues(0.5, 0.5, 0.5); // - FRUSTUM-LABELS - // internal protected _fontFace: FontFace; protected _labelPass: LabelRenderPass; protected _labels: Array