I’m trying to fix the BGE bug #27322 bge.render bugs - Mist, Ambient and Mode sets.
At this moment I have everything working (see following patch patch_mist.txt.zip (7.27 KB)) except when I’m in GLSL-Textured mode.
I found that in GLSL-Textured mode a GPU function (GPU_shaderesult_set) it is using the DNA World variables (miststa, misi, etc). But when we set the BGE python functions we can only modify the KX_World variables.
What is the better method to modify those DNA World variables? with a new GPU function? with a new BL_Shader or BL_BlenderMaterial function? will I have to reload the modified shader?
Any advice will be most welcome.