diff options
author | chai <chaifix@163.com> | 2019-12-23 23:59:02 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-12-23 23:59:02 +0800 |
commit | d49f3d3f73709a9a7c0bce53aa13ed28a2bd27cb (patch) | |
tree | 3fc2cca442106a56fc151c5faffbb24217ca83f5 /src/example/03_texture/03_texture.c | |
parent | ec111247c614663d8231245a17c314b9b8b4a28c (diff) |
*misc
Diffstat (limited to 'src/example/03_texture/03_texture.c')
-rw-r--r-- | src/example/03_texture/03_texture.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/example/03_texture/03_texture.c b/src/example/03_texture/03_texture.c index a0493bb..ab39298 100644 --- a/src/example/03_texture/03_texture.c +++ b/src/example/03_texture/03_texture.c @@ -80,7 +80,7 @@ void onupdatetexture(void*data) { ssr_matrixmode(MATRIX_VIEW); ssr_loadidentity(); float distance = 2; - Vec3 p = { distance * sin(_t), 3, distance * cos(_t) }, target = { 0, 0, 0 }; + Vec3 p = { distance * sin(_t), 5, distance * cos(_t) }, target = { 0, 0, 0 }; //Vec3 p = { 0, 0, 700}, target = { 0, 0, 0 }; ssr_lookat(&p, &target, &vec3up); @@ -133,5 +133,4 @@ void ondrawtexture(void*data) { ssr_setuniformtex(0, cyborg_albedo); ssr_bindvertices(cyborg_mesh->vertices, cyborg_mesh->vert_count, cyborg_mesh->triangles, cyborg_mesh->tris_count); ssr_draw(PRIMITIVE_TRIANGLE); - } |