RetroArch
Variables
fft_heightmap.glsl.frag.h File Reference
#include "shaders_common.h"
Include dependency graph for fft_heightmap.glsl.frag.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Variables

static const char * fft_fragment_program_heightmap
 

Variable Documentation

◆ fft_fragment_program_heightmap

const char* fft_fragment_program_heightmap
static
Initial value:
precision mediump float;
out vec4 FragColor;
in vec3 vWorldPos;
in vec3 vHeight;
vec3 colormap(vec3 height) {
return 1.0 / (1.0 + exp(-0.08 * height));
}
void main() {
vec3 color = mix(vec3(1.0, 0.7, 0.7) * colormap(vHeight), vec3(0.1, 0.15, 0.1), clamp(vWorldPos.z / 400.0, 0.0, 1.0));
color = mix(color, vec3(0.1, 0.15, 0.1), clamp(1.0 - vWorldPos.z / 2.0, 0.0, 1.0));
FragColor = vec4(color, 1.0);
}
)
#define GLSL_300(src)
Definition: shaders_common.h:11
struct passwd out
Definition: missing_libc_functions.c:51
#define exp(a)
Definition: math.h:32
GLenum GLint GLint * precision
Definition: glext.h:8206
GLuint in
Definition: glext.h:10523
GLenum clamp
Definition: glext.h:6856
int main(int argc, char *argv[])
Definition: send-presence.c:197
GLuint color
Definition: glext.h:6883
GLint GLint GLsizei GLsizei height
Definition: glext.h:6293