You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feu-Secret
added
bug
Functionality which is not working as intended
canvas
Issues related to the PIXI canvas, rendering, and other WebGL functions.
labels
Mar 20, 2024
Running into a specific shader typing issue while working on the Types project.
RenderedSource##createMesh(shaderCls)
constructs the mesh withnew PointSourceMesh(this.#geometry, shaderCls.create(), state)
shaderCls
is annotated astypeof AdaptiveLightingShader
AdaptiveLightingShader extends AbstractBaseShader extends BaseShaderMixin(PIXI.Shader)
PointSourceMesh
extendsPIXI.Mesh
, and the second argument in that constructor is expected to bePIXI.MeshMaterial
PIXI.MeshMaterial extends PIXI.Shader
, adding properties that are NOT present in theAdaptiveLightingShader
inheritance chain.TL;DR
PointSourceMesh
canonically expects a different subclass ofPIXI.Shader
than is provided by Foundry in actual use.Separate from #10227 because this seems to be a deeper issue in class construction.
The text was updated successfully, but these errors were encountered: