Files
MinecraftLegends/Win32.DX11.Release/data/shaders/glsl/sky.vertex
T
2026-03-08 15:34:38 -05:00

22 lines
535 B
Plaintext

// __multiversion__
// This signals the loading code to prepend either #version 100 or #version 300 es as apropriate.
#include "shaders/vertexVersionSimple.h"
#include "shaders/uniformWorldConstants.h"
#include "shaders/uniformPerFrameConstants.h"
#include "shaders/uniformShaderConstants.h"
attribute mediump vec4 POSITION;
attribute vec4 COLOR;
varying vec4 color;
const float fogNear = 0.3;
void main()
{
gl_Position = WORLDVIEWPROJ * POSITION;
color = mix( CURRENT_COLOR, FOG_COLOR, COLOR.r );
}