13.07.2015 Views

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

Mali GPU User Interface Engine Application Development Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Tutorial on Constructing Custom Shaders3. The order to draw the primitives must be determined. Breaking down a complex shapeinto a sequence of primitive shapes is called modeling.The chair is now modeled in its own 3D coordinate system. The next steps position thatchair in a larger environment and determine how it looks from the camera.4. Specify where the camera is located in 3D space, where the camera is pointing, where isthe top of the camera, and the viewing angle for the camera.5. A viewing transform calculates where the viewing frustum is in world coordinates.6. A projection transform maps the vertex to the display space (clip coordinates).7. Modify the result to produce the perspective effects.8. The vertex shader uses the interpolated position on the primitive to map the transformedand clipped coordinates to the display window.9. The fragment shader converts fragments to colored pixels in the frame buffer.ARM DUI 0527A-02a Copyright © 2010 ARM. All rights reserved. 6-4ID070710Non-Confidential - Draft - Beta

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!