X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?p=vrfileman;a=blobdiff_plain;f=src%2Fbackdrop.cc;h=91c709a0cdd90b1866a01a40f072b839ba805e27;hp=b81a04a35f663a7994161404373e3dc8730b84e2;hb=05cc7dce02b656e633c880dcc55acdf370cb25c1;hpb=b7ea5b1ae3f0f0a5eba13b49e303b49876ee209e diff --git a/src/backdrop.cc b/src/backdrop.cc index b81a04a..91c709a 100644 --- a/src/backdrop.cc +++ b/src/backdrop.cc @@ -6,6 +6,7 @@ #include "meshgen.h" #include "backdrop.h" #include "app.h" +#include "color.h" static unsigned int sdr_grid; static Texture *tex_grid; @@ -13,14 +14,15 @@ static Texture *tex_grid; static Mesh *mesh_skydome; static unsigned int sdr_skydome; -static const Vec3 grid_color = Vec3(1.0, 0.07, 1.0); -static const Vec3 mid_color = Vec3(0.133, 0.006, 0.612); -static const Vec3 horiz_color = Vec3(0.612, 0.006, 1.0); -static const Vec3 zenith_color = Vec3(0.029, 0.029, 0.029); -static const Vec3 fog_color = Vec3(0.01, 0.01, 0.01); bool init_backdrop() { + Vec3 grid_color = color(1.0, 0.07, 1.0); + Vec3 mid_color = color(0.133, 0.006, 0.612); + Vec3 horiz_color = color(0.612, 0.006, 1.0); + Vec3 zenith_color = color(0.029, 0.029, 0.029); + Vec3 fog_color = color(0.01, 0.01, 0.01); + if(!(sdr_grid = create_program_load("sdr/grid.v.glsl", "sdr/grid.p.glsl"))) { return false; }