add uv layout type for Circle shape

This commit is contained in:
Omar Mohamed Ali Mudhir
2017-01-17 20:02:15 +00:00
parent d5fed78bf5
commit f1e6fb7716
3 changed files with 32 additions and 21 deletions

View File

@@ -55,10 +55,10 @@ void App::init()
shader_color.create(shader_color_v, shader_color_f);
shader_uv.create(shader_v, shader_uv_f);
plane.create<5>(50, 50);
circle.create<6>(25);
circle2.create<15>(25, 12);
circle.create<10>(25, Circle::kUVMapping::Tube);
circle2.create<10>(25, 12, Circle::kUVMapping::Tube);
rounded.create<3>(50, 50, 10);
slice.create(50, 50, 10);
slice.create(50, 50, 10, .3);
if (!tex.load("data/uvs.jpg"))
printf("error loading image\n");