Book Image

Lua Game Development Cookbook

By : Mario Kasuba, Mário Kašuba
Book Image

Lua Game Development Cookbook

By: Mario Kasuba, Mário Kašuba

Overview of this book

Table of Contents (16 chapters)
Lua Game Development Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Chapter 5. Graphics – Modern Method with OpenGL 3.0+

This chapter will cover the following recipes:

  • Loading and using GLSL shaders

  • Using uniform variables with shaders

  • Writing a vertex shader

  • Writing a fragment (pixel) shader

  • Drawing primitives by using vertex buffers

  • Rendering to texture

  • Applying highlights and shadows to the scene

  • Bumpmapping