From 07d19e86712df8987ea96ca914108f39e3c3fa94 Mon Sep 17 00:00:00 2001 From: Cody Northrop Date: Tue, 13 Oct 2015 11:28:23 -0600 Subject: 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. --- demos/tri.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, }; -- cgit v1.2.3