24 lines
472 B
Plaintext
24 lines
472 B
Plaintext
|
#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);
|
||
|
}
|