* Shadow color now usable in the BGE * Simplified the shadow panel while "Blender Game" renderer is active * Added variance shadow maps for the BGE * Buffered shadows on sun lamps in the BGE (orthographic) * Light textures in the BGE
13 lines
228 B
GLSL
13 lines
228 B
GLSL
|
|
varying vec3 varposition;
|
|
varying vec3 varnormal;
|
|
|
|
void main()
|
|
{
|
|
vec4 co = gl_ModelViewMatrix * gl_Vertex;
|
|
|
|
varposition = co.xyz;
|
|
varnormal = normalize(gl_NormalMatrix * gl_Normal);
|
|
gl_Position = gl_ProjectionMatrix * co;
|
|
|