External shading programs?

Well guys, do anyone of you know any other external shaders that give a better result in the BGE other than the default shader? (And also, how to use it in blender?) I just want to get better shadows and shades in my game (although I know how to fake shadows in the BGE).:slight_smile:

Hi,
i use 3dlab GLSL demo, and render monkey to test my shaders, and set it into my objects into blender using python by this code, that in this example i set Cube material with a shader that does nothing!, but you can use this as a template an write your own shaders.

import GameLogic
objects = GameLogic.getCurrentScene().getObjectList()


VertexShader = """
void main(void)
{
    gl_Position     = ftransform();
}
"""

FragmentShader = """
void main (void)
{
    gl_FragColor = vec4 (0.5,0.5,0.2, 1.0);
}
"""

blendo_index = 0
eye_index = 1


def main():
    obj = objects['OBCube']
    mesh_index = 0
    mesh = obj.getMesh(mesh_index)
    while mesh != None:
        for mat in mesh.materials:
            if not hasattr(mat, "getMaterialIndex"):
                break
                    
            mat_index = mat.getMaterialIndex()
            if mat_index == blendo_index or mat_index == eye_index:
                shader = mat.getShader()
                if not shader.isValid():
                    shader.setSource(VertexShader, FragmentShader,1)
                    shader.setNumberOfPasses(1)
        mesh_index += 1
        mesh = obj.getMesh(mesh_index)
        
main()