Practical Shader Development: Vertex and Fragment Shaders for Game Developers

Halladay, Kyle

買這商品的人也買了...

商品描述

It's time to stop thinking that shaders are magical. You can use shaders to turn data into stunning visual effects, and get your hands dirty by building your own shader with this step-by-step introduction to shader development for game and graphics developers. Learn how to make shaders that move, tint, light up, and look awesome, all without cracking open a math textbook.
Practical Shader Development teaches the theory behind how shaders work. The book also shows you how to apply that theory to create eye-popping visual effects. You'll learn to profile and optimize those effects to make sure your projects keep running quickly with all their new visuals. You'll learn good theory, good practices, and without getting bogged down in the math.
Author Kyle Halladay explains the fundamentals of shader development through simple examples and hands-on experiments. He teaches you how to find performance issues in shaders you are using and then how to fix them. Kyle explains (and contrasts) how to use the knowledge learned from this book in three of the most popular game engines today.

What You'll Learn

  • Understand what shaders are and how they work
  • Get up to speed on the nuts and bolts of writing vertex and fragment shaders
  • Utilize color blending and know how blend equations work
  • Know the coordinate spaces used when rendering real-time computer graphics
  • Use simple math to animate characters, simulate lights, and create a wide variety of visual effects
  • Find and fix performance problems in shaders
  • See how three popular game engines (Unity, UE4, Godot) handle shaders

Who This Book Is For

Programmers who are interested in writing their own shaders but do not know where to start, anyone who has ever seen shader code on a forum and wished they knew how to modify it just a little bit to fit into their own projects, and game developers who are tired of using the default shaders found in the game engines they are using. The book is especially useful for those who have been put off by existing shader tutorials which introduce complex math and graphics theory before ever getting something on the screen.

商品描述(中文翻譯)

是時候停止將着色器視為神奇的存在了。你可以使用着色器將數據轉化為令人驚嘆的視覺效果,並通過逐步介紹着色器開發的方式,親自動手建立自己的着色器。《實用着色器開發》這本書專為遊戲和圖形開發人員提供了理論和實踐結合的教學。你將學習如何製作能夠移動、著色、照亮並呈現出令人驚艷的着色器,而無需閱讀數學教科書。

作者Kyle Halladay通過簡單的示例和實踐實驗,解釋了着色器開發的基礎知識。他教你如何找出正在使用的着色器中的性能問題,並解決它們。Kyle解釋了如何在當今三個最受歡迎的遊戲引擎中應用從本書中學到的知識。

本書將教你:


  • 了解着色器是什麼以及它們的工作原理

  • 快速掌握編寫頂點和片段着色器的基礎知識

  • 利用顏色混合並了解混合方程的工作原理

  • 了解實時計算機圖形渲染時使用的坐標空間

  • 使用簡單的數學來為角色添加動畫、模擬燈光並創建各種視覺效果

  • 找出並解決着色器中的性能問題

  • 了解三個流行的遊戲引擎(Unity、UE4、Godot)如何處理着色器

本書適合對於撰寫自己的着色器感興趣但不知從何處入手的程序員,任何曾在論壇上看到着色器代碼並希望能稍微修改以適應自己項目的人,以及對於使用所使用的遊戲引擎中的默認着色器感到厭倦的遊戲開發人員。本書對於那些在屏幕上看到東西之前就被複雜的數學和圖形理論所嚇到的人尤其有用。

作者簡介

Kyle Halladay is a professional game programmer living in Chicago. He has more than seven years of experience writing about shaders and building graphics technology for games and architectural visualizations.

作者簡介(中文翻譯)

Kyle Halladay 是一位居住在芝加哥的專業遊戲程式設計師。他擁有超過七年的經驗,撰寫關於著色器和建構遊戲和建築視覺化的圖形技術的文章。