caccb56707
* new example new tess example * renaming Rename clock to counter... * clean Remove comments * clean up removed vector and const char* path * ups Removing compiled shaders...
12 lines
210 B
Scala
12 lines
210 B
Scala
$input v_texcoord0
|
|
|
|
#include "terrain_common.sh"
|
|
|
|
void main()
|
|
{
|
|
vec2 s = texture2D(u_SmapSampler, v_texcoord0).rg * u_DmapFactor;
|
|
vec3 n = normalize(vec3(-s, 1));
|
|
gl_FragColor = vec4(abs(n), 1);
|
|
}
|
|
|