OpenGL 4 Shading Language Cookbook, 2/e (Paperback)
暫譯: OpenGL 4 着色語言食譜,第2版 (平裝本)

David Wolff

  • 出版商: Packt Publishing
  • 出版日期: 2013-12-24
  • 售價: $2,420
  • 貴賓價: 9.5$2,299
  • 語言: 英文
  • 頁數: 394
  • 裝訂: Paperback
  • ISBN: 1782167021
  • ISBN-13: 9781782167020
  • 相關分類: OpenGL
  • 海外代購書籍(需單獨結帳)

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

商品描述

Acquiring the skills of OpenGL Shading Language is so much easier with this cookbook. You'll be creating graphics rather than learning theory, gaining a high level of capability in modern 3D programming along the way.

Overview

  • Discover simple and advanced techniques for leveraging modern OpenGL and GLSL
  • Learn how to use the newest features of GLSL including compute shaders, geometry, and tessellation shaders
  • Get to grips with a wide range of techniques for implementing shadows using shadow maps, shadow volumes, and more
  • Clear, easy-to-follow examples with detailed explanations and full, cross-platform source code available from GitHub

In Detail

OpenGL Shading Language (GLSL) is a programming language used for customizing parts of the OpenGL graphics pipeline that were formerly fixed-function, and are executed directly on the GPU. It provides programmers with unprecedented flexibility for implementing effects and optimizations utilizing the power of modern GPUs. With Version 4, the language has been further refined to provide programmers with greater power and flexibility, with new stages such as tessellation and compute.

OpenGL 4 Shading Language Cookbook provides easy-to-follow examples that first walk you through the theory and background behind each technique, and then go on to provide and explain the GLSL and OpenGL code needed to implement it. Beginner level through to advanced techniques are presented including topics such as texturing, screen-space techniques, lighting, shading, tessellation shaders, geometry shaders, compute shaders, and shadows.

OpenGL Shading Language 4 Cookbook is a practical guide that takes you from the fundamentals of programming with modern GLSL and OpenGL, through to advanced techniques. The recipes build upon each other and take you quickly from novice to advanced level code.

You’ll see essential lighting and shading techniques; examples that demonstrate how to make use of textures for a wide variety of effects and as part of other techniques; examples of screen-space techniques including HDR rendering, bloom, and blur; shadowing techniques; tessellation, geometry, and compute shaders; how to use noise effectively; and animation with particle systems.

OpenGL Shading Language 4 Cookbook provides examples of modern shading techniques that can be used as a starting point for programmers to expand upon to produce modern, interactive, 3D computer graphics applications.

What you will learn from this book

  • Compile, debug, and communicate with shader programs
  • Use new features of GLSL 4 such as subroutines, sampler objects, and uniform blocks
  • Implement core lighting and shading techniques such as diffuse and specular shading, per-fragment shading, and spotlights
  • Use textures for a variety of effects including cube maps for reflection or refraction
  • Implement screen-space techniques such as HDR, bloom, blur filters, order-independent transparency, and deferred shading
  • Utilize noise in shaders
  • Use shaders for animation
  • Make use of compute shaders for physics, animation, and general computing
  • Learn how to use new OpenGL features such as shader storage buffer objects, and image load/store

商品描述(中文翻譯)

獲得 OpenGL Shading Language 的技能透過這本食譜書變得更加容易。您將專注於創建圖形,而不是學習理論,並在此過程中獲得現代 3D 編程的高水平能力。

概述
- 探索利用現代 OpenGL 和 GLSL 的簡單與進階技術
- 學習如何使用 GLSL 的最新功能,包括計算著色器、幾何著色器和細分著色器
- 熟悉使用陰影貼圖、陰影體等實現陰影的各種技術
- 清晰、易於跟隨的範例,附有詳細解釋和可從 GitHub 獲得的完整跨平台源代碼

詳細內容
OpenGL Shading Language (GLSL) 是一種用於自定義 OpenGL 圖形管線中以前為固定功能的部分的程式語言,這些部分直接在 GPU 上執行。它為程式設計師提供了前所未有的靈活性,以利用現代 GPU 的強大功能來實現效果和優化。隨著版本 4 的推出,該語言進一步精煉,為程式設計師提供了更大的能力和靈活性,新增了細分和計算等階段。

OpenGL 4 Shading Language Cookbook 提供易於跟隨的範例,首先引導您了解每種技術背後的理論和背景,然後提供並解釋實現所需的 GLSL 和 OpenGL 代碼。從初學者到進階技術的主題包括紋理處理、螢幕空間技術、照明、著色、細分著色器、幾何著色器、計算著色器和陰影。

OpenGL Shading Language 4 Cookbook 是一本實用指南,帶您從現代 GLSL 和 OpenGL 的編程基礎,進入進階技術。這些食譜相互建立,讓您迅速從新手提升到進階代碼水平。

您將看到基本的照明和著色技術;示範如何利用紋理實現各種效果及作為其他技術的一部分的範例;包括 HDR 渲染、光暈和模糊的螢幕空間技術範例;陰影技術;細分、幾何和計算著色器;如何有效使用噪聲;以及粒子系統的動畫。

OpenGL Shading Language 4 Cookbook 提供現代著色技術的範例,這些範例可以作為程式設計師擴展的起點,以製作現代的互動式 3D 電腦圖形應用程式。

您將從這本書中學到的內容
- 編譯、調試和與著色器程序進行通信
- 使用 GLSL 4 的新功能,如子程序、取樣器對象和統一區塊
- 實現核心照明和著色技術,如漫反射和鏡面反射著色、每片段著色和聚光燈
- 利用紋理實現各種效果,包括用於反射或折射的立方體貼圖
- 實現螢幕空間技術,如 HDR、光暈、模糊濾鏡、無序透明和延遲著色
- 在著色器中利用噪聲
- 使用著色器進行動畫
- 利用計算著色器進行物理、動畫和一般計算
- 學習如何使用新的 OpenGL 功能,如著色器存儲緩衝區對象和圖像加載/存儲

最後瀏覽商品 (1)