18 lines
317 B
Text
18 lines
317 B
Text
|
#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);
|
||
|
}
|