fixes
This commit is contained in:
parent
7764a7c118
commit
e8d64cc907
|
|
@ -13,6 +13,8 @@ import { PropertyValues } from '@lit/reactive-element';
|
||||||
export class FolkDistanceField extends FolkBaseSet {
|
export class FolkDistanceField extends FolkBaseSet {
|
||||||
static override tagName = 'folk-distance-field';
|
static override tagName = 'folk-distance-field';
|
||||||
|
|
||||||
|
static readonly MAX_DISTANCE = 99999.0;
|
||||||
|
|
||||||
private textures: WebGLTexture[] = [];
|
private textures: WebGLTexture[] = [];
|
||||||
|
|
||||||
private canvas!: HTMLCanvasElement;
|
private canvas!: HTMLCanvasElement;
|
||||||
|
|
@ -25,18 +27,10 @@ export class FolkDistanceField extends FolkBaseSet {
|
||||||
private renderProgram!: WebGLProgram; // Shader program for final rendering
|
private renderProgram!: WebGLProgram; // Shader program for final rendering
|
||||||
private seedProgram!: WebGLProgram; // Shader program for rendering seed points
|
private seedProgram!: WebGLProgram; // Shader program for rendering seed points
|
||||||
|
|
||||||
private static readonly MAX_DISTANCE = 99999.0;
|
|
||||||
|
|
||||||
private positionBuffer: WebGLBuffer | null = null;
|
private positionBuffer: WebGLBuffer | null = null;
|
||||||
|
|
||||||
private isPingTexture: boolean = true;
|
private isPingTexture: boolean = true;
|
||||||
|
|
||||||
firstUpdated(changedProperties: PropertyValues<this>): void {
|
|
||||||
super.firstUpdated(changedProperties);
|
|
||||||
|
|
||||||
this.renderRoot.appendChild(document.createElement('slot'));
|
|
||||||
}
|
|
||||||
|
|
||||||
connectedCallback() {
|
connectedCallback() {
|
||||||
super.connectedCallback();
|
super.connectedCallback();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
import { FolkEventPropagator } from './folk-event-propagator.ts';
|
|
||||||
import { css } from './common/tags.ts';
|
import { css } from './common/tags.ts';
|
||||||
|
|
||||||
const styles = css`
|
const styles = css`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue