diff options
| author | Cody Northrop <cody@lunarg.com> | 2015-10-13 11:28:23 -0600 |
|---|---|---|
| committer | Cody Northrop <cody@lunarg.com> | 2015-10-27 17:30:29 -0600 |
| commit | 07d19e86712df8987ea96ca914108f39e3c3fa94 (patch) | |
| tree | 4722063d63b5738337b584e57651a9844f4343ba | |
| parent | 19475790465da6fe5819e7c8b6d712789f93eefb (diff) | |
| download | usermoji-07d19e86712df8987ea96ca914108f39e3c3fa94.tar.xz | |
demos: Clean up tri depth
We animated tri to make it clear it was rendering correctly based
on ISV feedback. It looks better, but still questionable.
This change makes the depth cutoff a straight line by giving the top
two vertices the same depth.
| -rw-r--r-- | demos/tri.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/tri.c b/demos/tri.c index 850a4b14..9bd83d8a 100644 --- a/demos/tri.c +++ b/demos/tri.c @@ -972,7 +972,7 @@ static void demo_prepare_vertices(struct demo *demo) { const float vb[3][5] = { /* position texcoord */ - { -1.0f, -1.0f, 0.2f, 0.0f, 0.0f }, + { -1.0f, -1.0f, 0.25f, 0.0f, 0.0f }, { 1.0f, -1.0f, 0.25f, 1.0f, 0.0f }, { 0.0f, 1.0f, 1.0f, 0.5f, 1.0f }, }; |
