billboards!
This commit is contained in:
		| @@ -158,6 +158,8 @@ static void draw_terrain(SceneIngame *scn) { | ||||
|                             (Vec2){ 128, 0 }, | ||||
|                             (Vec2){ 0, 0 }, | ||||
|                             (Vec2){ 0, 128 }); | ||||
|  | ||||
|             draw_billboard("/assets/grasses/10.png", (Vec3){ (float)x, d1 + 0.1f, (float)y }, (Vec2){0.3f, 0.3f}, (Color){255, 255, 255, 255}, true); | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -200,7 +202,7 @@ static void ingame_tick(State *state) { | ||||
|     generate_terrain(scn); | ||||
|     draw_terrain(scn); | ||||
|  | ||||
|     draw_skybox("/assets/miramar/miramar_*.tga"); | ||||
|     // draw_skybox("/assets/miramar/miramar_*.tga"); | ||||
|     draw_fog(0.9f, 1.0f, 0.05f, (Color){ 140, 147, 160, 255 }); | ||||
| } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user