This commit is contained in:
“chrisshank” 2024-12-10 15:57:31 -08:00
parent 7764a7c118
commit e8d64cc907
2 changed files with 2 additions and 9 deletions

View File

@ -13,6 +13,8 @@ import { PropertyValues } from '@lit/reactive-element';
export class FolkDistanceField extends FolkBaseSet {
static override tagName = 'folk-distance-field';
static readonly MAX_DISTANCE = 99999.0;
private textures: WebGLTexture[] = [];
private canvas!: HTMLCanvasElement;
@ -25,18 +27,10 @@ export class FolkDistanceField extends FolkBaseSet {
private renderProgram!: WebGLProgram; // Shader program for final rendering
private seedProgram!: WebGLProgram; // Shader program for rendering seed points
private static readonly MAX_DISTANCE = 99999.0;
private positionBuffer: WebGLBuffer | null = null;
private isPingTexture: boolean = true;
firstUpdated(changedProperties: PropertyValues<this>): void {
super.firstUpdated(changedProperties);
this.renderRoot.appendChild(document.createElement('slot'));
}
connectedCallback() {
super.connectedCallback();

View File

@ -1,4 +1,3 @@
import { FolkEventPropagator } from './folk-event-propagator.ts';
import { css } from './common/tags.ts';
const styles = css`