Open keepChatAlive opened 1 month ago
At least GL_EXT_clip_cull_distance is not supported on Mali G52, G78 and G610 devices, which means they are unsupported on significant portion of Mali GPUs, even the recent ones. reason #657467468 why Mali GPU sucks Seems that Adreno 6xx GPU should support it
Try remove these lines in files in shadow_map.vert.glsl file: 17:#extension GL_EXT_clip_cull_distance : enable 82~86:gl_ClipDistance...... Shadowmapping is less used.
And you can contact original author how about glsl shader implemention without gl extensions
Try remove these lines in files in shadow_map.vert.glsl file: 17:#extension GL_EXT_clip_cull_distance : enable 82~86:gl_ClipDistance...... Shadowmapping is less used.
by following this, shader compliation errors cleared but light quality is not improved(still too dark). maybe the Mali GPU is simply too fxcked up
On my device(SD 7Gen2+)
On my device(SD 7Gen2+)
This is the same image after I fixed shaders on my Mali phone. This is the best we have now but still very dark compared to PC version and makes things like boxes hard to see. Likely due to how diii4a framework render shadows making them too hard or too intense For example this is the level "The new job" on PC https://www.youtube.com/watch?v=MvT-6CbkZd0
This is a screenshot from PC. Looks the same for me.
By default, TDM can render the menu and go into the game level as of now. However, at least on my current Mali device, the level is pitch black and the moon on skybox is twitching. I analysed the problem and there are 4 problems:
1.stdout.txt complaining about missing precision in the parameter "stencilTexture"
This can be fixed by adding mediump or highp precision to parameter "stencilTexture" of the type usampler2D in the file tdm_shadowstencilsoft.glsl
after adding precision keyword, this shader file can be compiled with no problem and the level would at least show something
however, the geometry in level seems to still be wobbly even if we choose highp precision
2.the moon is twitching in the level "The New Job", the moon on skybox is twitching(irrevelant of if 1 is fixed or not, highp or mediump), maybe due to shader precision or compliation errors, or more severe errors
3.stdout.txt complaining about missing OpenGL extension, causing another shader compliation to fail:
This likely cannot be fixed unless we find a way to "polyfill" the missing GL_EXT_clip_cull_distance extension, which is hard. Maybe my current Mali phone really sucks and G52 supports too few functions
4.level is still too dark to play even after fixing 1, the level is still too dark to play compared to PC edition, maybe due to 1 2 3, some 1 2 3 and other issues combined, or due to how diii4a framework render shadows making them too hard or too intense
Maybe we can contact TDM developers to discuss how to better port TDM to phones I would not actively contact them, it is up to you to choose