-no-srgb option
[vrfileman] / src / backdrop.cc
index b81a04a..91c709a 100644 (file)
@@ -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;
        }