2019-05-06 08:22:47 +00:00
|
|
|
#version 330 core
|
|
|
|
|
2020-05-15 12:22:17 +00:00
|
|
|
#include <constants.glsl>
|
|
|
|
|
|
|
|
#define LIGHTING_TYPE (LIGHTING_TYPE_TRANSMISSION | LIGHTING_TYPE_REFLECTION)
|
|
|
|
|
|
|
|
#define LIGHTING_REFLECTION_KIND LIGHTING_REFLECTION_KIND_SPECULAR
|
|
|
|
|
|
|
|
#if (FLUID_MODE == FLUID_MODE_CHEAP)
|
|
|
|
#define LIGHTING_TRANSPORT_MODE LIGHTING_TRANSPORT_MODE_IMPORTANCE
|
|
|
|
#elif (FLUID_MODE == FLUID_MODE_SHINY)
|
|
|
|
#define LIGHTING_TRANSPORT_MODE LIGHTING_TRANSPORT_MODE_RADIANCE
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define LIGHTING_DISTRIBUTION_SCHEME LIGHTING_DISTRIBUTION_SCHEME_MICROFACET
|
|
|
|
|
|
|
|
#define LIGHTING_DISTRIBUTION LIGHTING_DISTRIBUTION_BECKMANN
|
|
|
|
|
2019-05-12 09:10:13 +00:00
|
|
|
#include <globals.glsl>
|
|
|
|
|
2019-05-06 08:22:47 +00:00
|
|
|
in vec2 v_pos;
|
|
|
|
|
|
|
|
layout (std140)
|
|
|
|
uniform u_locals {
|
|
|
|
vec4 nul;
|
|
|
|
};
|
|
|
|
|
|
|
|
out vec2 f_pos;
|
|
|
|
|
|
|
|
void main() {
|
|
|
|
f_pos = v_pos;
|
|
|
|
|
2020-07-02 20:10:22 +00:00
|
|
|
gl_Position = vec4(v_pos, -1.0, 1.0);
|
2019-05-06 08:22:47 +00:00
|
|
|
}
|