
getVertexProg()
- Returns every line of vertex program this shader is using.
- Returns an empty string if the shader wasn't set.
Return Type:
- string
Note:
- Shaders work with Viewport Shading GLSL and Viewport Shading Multitexture.
- Shaders don't work with Viewport Shading Singletexture.

Sample Code
############################# get the vertex program
# import bge
import bge
# get the current controller
conT = bge.logic.getCurrentController()
# get object that owns this controller
obj = cont.owner
# Get a list of the mesh
meshList = obj.meshes
# Get the first mesh on the object
mesh = meshList[0]
# only one material on mesh
mat = mesh.materials[0]
# Using Blender GLSL Materials or Blender Multitexture Materials?
if hasattr( mat, 'getMaterialIndex') == True:
# get shader envelope
shader = mat.getShader()
# did it get the shader envelope?
if shader != None:
shader = mat.getShader()
# did it get the shader envelope?
if shader != None:
# get vertex program this shader uses
fragProg = shader.getVertexProg()
fragProg = shader.getVertexProg()