2014-11-03 19:38:17 +00:00
|
|
|
uniform sampler2D basemap;
|
2014-10-27 01:32:08 +00:00
|
|
|
|
2014-12-03 15:47:33 +00:00
|
|
|
#ifndef OPENCLONK
|
|
|
|
#define slice(x)
|
|
|
|
#define color gl_FragColor
|
|
|
|
varying vec2 texcoord;
|
2014-10-27 01:32:08 +00:00
|
|
|
void main()
|
|
|
|
{
|
2014-12-03 15:47:33 +00:00
|
|
|
color = vec4(1.0, 1.0, 1.0, 1.0);
|
|
|
|
#endif
|
2014-11-06 19:24:41 +00:00
|
|
|
|
2014-12-03 15:47:33 +00:00
|
|
|
slice(init+1)
|
|
|
|
{
|
|
|
|
// This will make ObjectLightShader.glsl pick up the path that
|
|
|
|
// Looks up the direction from the normal map.
|
|
|
|
#define HAVE_NORMALMAP
|
|
|
|
|
|
|
|
color = color * gl_FrontMaterial.diffuse * texture2D(basemap, texcoord);
|
|
|
|
|
|
|
|
#ifndef OPENCLONK
|
|
|
|
// TODO: Could apply some default lighting here, for viewing the mesh in
|
|
|
|
// a mesh viewer
|
|
|
|
#endif
|
|
|
|
}
|
2014-10-27 01:32:08 +00:00
|
|
|
|
2014-12-03 15:47:33 +00:00
|
|
|
#ifndef OPENCLONK
|
2014-10-27 01:32:08 +00:00
|
|
|
}
|
2014-12-03 15:47:33 +00:00
|
|
|
#endif
|