// __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 ); }