Removed shaders, textures are now supported
This commit is contained in:
@@ -10,5 +10,6 @@ void main() {
|
||||
vec3 ambientFactor = ambientLight;
|
||||
vec3 lambertFactor = max(vec3(0.0,0.0,0.0), dot(directionnalLight, fNormal) * directionnalLightFactor);
|
||||
|
||||
vec4 texel = texture2D(tex, gl_TexCoord[0].xy);
|
||||
gl_FragColor = vec4(ambientFactor + lambertFactor, 1.0);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
varying vec3 fNormal;
|
||||
varying vec4 fTexCoord;
|
||||
|
||||
void main() {
|
||||
fNormal = gl_Normal;
|
||||
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
|
||||
gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user