OpenGL ES 2 for Android (for Jan S Morrison) by Kevin Brothaler
Author:Kevin Brothaler
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 978-1-937785-34-5
Publisher: The Pragmatic Bookshelf, LLC (436473)
void main()
{
gl_FragColor = u_Color;
}
Our shaders should now be up-to-date.
8.6 Integrating Our Changes
The hardest part of this chapter is done. We learned how to build a puck and a mallet out of simple geometric shapes, and we’ve also updated our shaders to reflect the changes. All that’s left is to integrate the changes into AirHockeyRenderer; at the same time, we’ll also learn how to add the concept of a camera by adding a view matrix.
So why would we want to add another matrix? When we first started our air hockey project, we originally didn’t use any matrices at all. We first added an orthographic matrix to adjust for the aspect ratio, and then we switched to a perspective matrix to get a 3D projection. We then added a model matrix to start moving stuff around. A view matrix is really just an extension of a model matrix; it’s used for the same purposes, but it applies equally to every object in the scene.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8309)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(7408)
Kotlin in Action by Dmitry Jemerov(7263)
Odoo 15 Development Essentials - Fifth Edition by Daniel Reis & Greg Mader(3830)
Odoo 15 Development Essentials by Daniel Reis(2899)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2601)
Pride and Prejudice by Jane Austen(2443)
Learning Angular - Second Edition by Christoffer Noring(2430)
Computers For Seniors For Dummies by Nancy C. Muir(2106)
Mobile Forensics Cookbook by Igor Mikhaylov(2089)
Ember.js in Action by Joachim Haagen Skeie(2056)
Bulletproof Android: Practical Advice for Building Secure Apps (Developer's Library) by Godfrey Nolan(1963)
Android Development with Kotlin by Marcin Moskala & Igor Wojda(1883)
Building Android UIs with Custom Views by Raimon Ràfols Montané(1858)
1936941139 (N) by Bob Rosenthal(1834)
Hands-On Internet of Things with MQTT by Tim Pulver(1828)
Building Progressive Web Apps: Bringing the Power of Native to the Browser by Ater Tal(1827)
Android App Development by Franceschi Hervé J.;(1818)
Hands-On Design Patterns with React Native by Mateusz Grzesiukiewicz(1725)