summaryrefslogtreecommitdiff
path: root/src/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/example')
-rw-r--r--src/example/03_texture/03_texture.c3
-rw-r--r--src/example/04_bloom/04_bloom.c1
2 files changed, 1 insertions, 3 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);
-
}
diff --git a/src/example/04_bloom/04_bloom.c b/src/example/04_bloom/04_bloom.c
index 6f37f62..4a79669 100644
--- a/src/example/04_bloom/04_bloom.c
+++ b/src/example/04_bloom/04_bloom.c
@@ -42,7 +42,6 @@ void onloadbloom(void* data) {
ssr_perspective(90, ssr_getaspect(), 0.1, 10);
//ssr_ortho(-5, 5, -4, 4, 0.1, 10);
-
ssr_setblendfunc(BLEND_SRC_ALPHA, BLEND_ONE_MINUS_SRC_ALPHA);
albedo_tex = texture_create(600, 480);