Add W buffering
FossilOrigin-Name: ef98223fea88b74ac03f3288f0852d68a0154fed9fe88800b88d7b264812d97b
This commit is contained in:
parent
95fd0d1a5d
commit
f9c6e34b1e
3 changed files with 15 additions and 12 deletions
|
@ -32,21 +32,21 @@ OF_APPLICATION_DELEGATE(TestsAppDelegate)
|
|||
options: nil] autorelease];
|
||||
|
||||
const O3DVertex outerTriangle[] = {
|
||||
{{ -1, -1 }, { 1, 0, 0 }},
|
||||
{{ 0, 1 }, { 0, 1, 0 }},
|
||||
{{ 1, -1 }, { 0, 0, 1 }}
|
||||
{{ -1, -1, 1 }, { 1, 0, 0 }},
|
||||
{{ 0, 1, 1 }, { 0, 1, 0 }},
|
||||
{{ 1, -1, 1 }, { 0, 0, 1 }}
|
||||
};
|
||||
const O3DVertex innerTriangle[] = {
|
||||
{{ -0.5, 0.5 }, { 1, 1, 0 }},
|
||||
{{ 0, -0.5 }, { 0, 1, 1 }},
|
||||
{{ 0.5, 0.5 }, { 1, 0, 1 }}
|
||||
{{ -0.5, 0.5, 0 }, { 1, 1, 0 }},
|
||||
{{ 0, -0.5, 0 }, { 0, 1, 1 }},
|
||||
{{ 0.5, 0.5, 0 }, { 1, 0, 1 }}
|
||||
};
|
||||
|
||||
OFDate *startDate = [OFDate date];
|
||||
while (-startDate.timeIntervalSinceNow < 5) {
|
||||
[renderer beginFrame];
|
||||
[renderer drawPolygonWithVertices: outerTriangle count: 3];
|
||||
[renderer drawPolygonWithVertices: innerTriangle count: 3];
|
||||
[renderer drawPolygonWithVertices: outerTriangle count: 3];
|
||||
[renderer endFrame];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue