Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/CoreShaderManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ export class CoreShaderManager {

if (shType === 'DynamicShader') {
return this.loadDynamicShader(
props!,
props as DynamicShaderProps,
) as unknown as ShaderController<Type>;
}

Expand Down
2 changes: 2 additions & 0 deletions src/core/renderers/webgl/shaders/SdfShader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ export class SdfShader extends WebGlCoreShader {
});
}

static z$__type__Props: SdfShaderProps;

override bindTextures(textures: WebGlCoreCtxTexture[]) {
const { glw } = this;
glw.activeTexture(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,14 @@ export class SdfTextRenderer extends TextRenderer<SdfTextRendererState> {

constructor(stage: Stage) {
super(stage);
this.sdfShader = this.stage.shManager.loadShader('SdfShader').shader;
this.sdfShader = this.stage.shManager.loadShader('SdfShader', {
transform: new Float32Array(),
color: 0,
size: 0,
scrollY: 0,
distanceRange: 0,
debug: false,
}).shader;
this.rendererBounds = {
x1: 0,
y1: 0,
Expand Down
1 change: 0 additions & 1 deletion src/main-api/ShaderController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ export class ShaderController<S extends keyof ShaderMap>
stage: Stage,
) {
this.resolvedProps = props;

const keys = Object.keys(props);
const l = keys.length;

Expand Down
Loading