Any idea why shadowcasting doesn't work with gpu_set_ztestenable(true); even if i set gpu_set_ztestenable(false); before drawing lighting?
i was able to get lights working by setting it to false and then back to true after.. but the shadowcaster side of the lighting system doesn't like that and refuses to cast shadows.
I might have to do without shadowcasters 😭
At least I was able to get lights working with the shader grass I'm using
If you are able to update the asset to include shadowcasters that work when gpu_set_ztestenable(true) is set, that'd be great.
I tried getting the shader grass I'm using (TouchGrass) to work without gpu_set_ztestenable(true); but it was always invisible, everything i tried.
I think I'm gonna have to give up trying and settle for what I was able to get working, lights + grass.
EDIT: I GOT SHADOWCASTERS WORKING WITH THE SHADER BASED GRASS..
BUT NOW I HAVE A DEPTHMASK ISSUE... I TRIED FIXING IT BY SETTING A DEPTHMASK FOR THE PLAYER'S MESH TO BE MASKED WITH THE SPRITE, BUT NO DEPTHMASK (AS FAR AS I CAN TELL, CUS SHADOWS STILL OVERLAP MY PLAYER)

ANY IDEAS HOW TO FIX IT?
I DON'T KNOW WHY THE PLAYER DEPTHMASK I SET ISN'T WORKING,
I REALLY THOUGHT THAT WOULD SOLVE IT :/













