when i use sampler2DShadow shadowMap; in the compiled version it can’t find the texture? or something i’m not quite certain,
note when ran from the python script with
precision mediump sampler2DShadow;
struct p3d_DirectionalLightParameters {
vec4 color;
vec3 direction;
sampler2DShadow shadowMap;
mat4 shadowViewMatrix;
};
it runs fine its just when it gets compiled
it has these errors
:display:gsg:gles2gsg(error): at 192 of panda/src/glstuff/glGraphicsBuffer_src.cxx : invalid framebuffer operation main.js:1:494654
:display:gsg:gles2gsg(error): at 3992 of panda/src/glstuff/glGraphicsStateGuardian_src.cxx : invalid framebuffer operation main.js:1:494654
:display:gsg:gles2gsg(error): GL texture creation failed for Spot : invalid operation main.js:1:494654
:display:gsg:gles2gsg(error): Could not load Spot
this is it running without the shadow map #edit am a idiot forgot to publish the game on itch
any advice on what i could try would be great, i haven’t had much luck finding things on google.
file with the code
assemblytest.zip (1.2 MB)
also the tutorial i used to get pygbag to work pygame wasm | Run python and pygame code in your html