24 lines
472 B
GLSL
24 lines
472 B
GLSL
#define _AlphaTest
|
|
#define _Instancing
|
|
#define _NormalMapping
|
|
#define _Texturing
|
|
#define _VCols
|
|
//--------------------------------------------------------
|
|
#ifdef GL_ES
|
|
precision mediump float;
|
|
#endif
|
|
|
|
#ifdef _NormalMapping
|
|
#define _Texturing
|
|
#endif
|
|
|
|
varying vec4 position;
|
|
|
|
void kore() {
|
|
|
|
float normalizedDistance = position.z / position.w;
|
|
normalizedDistance += 0.005;
|
|
|
|
gl_FragColor = vec4(normalizedDistance, normalizedDistance, normalizedDistance, 1.0);
|
|
}
|