static float fog_density;
-static int num_cows = 400;
+static int num_cows = 1;
static float cow_gap = 4;
static Scene *cow_scene;
static MorphRenderer *cow_rend;
static Texture *skybox_tex;
static Texture *irradiance_tex;
static Texture *terrain_tex;
+static Texture *dirt_tex;
static Material terrain_mat;
static Renderer *terrain_rend;
terrain_tex = gfx_create_texture();
if(!terrain_tex->load("data/grass.jpeg")) {
- fprintf(stderr, "Failed to load ground texture.\n");
+ fprintf(stderr, "Failed to load ground grass texture.\n");
+ return false;
+ }
+
+ dirt_tex = gfx_create_texture();
+ if(!dirt_tex->load("data/dirt.jpg")) {
+ fprintf(stderr, "Failed to load ground dirt texture.\n");
return false;
}
return false;
}
- p.xsz = 200;
- p.ysz = 200;
- p.max_height = 30;
- p.xtiles = 40;
- p.ytiles = 40;
+ p.xsz = 20;//200;
+ p.ysz = 20; //200;
+ p.max_height = 3;//30;
+ p.xtiles = 4;//40;
+ p.ytiles = 4;//40;
p.tile_usub = 10;
p.tile_vsub = 10;
p.num_octaves = 3;