~/talk

Advanced Unity Shaders

Talkat GCAP 2017 · 2017-10-24..10-25· [game-development, web-performance]
links:none on file
slides:none on file

Shows concrete code and workflows for advanced Unity shaders: using a script to set a global float via Shader.PropertyToID so many materials share a single wind parameter; building a camera-to-screen matrix with GL.GetGPUProjectionMatrix × worldToCameraMatrix and writing it to a global float4x4; rendering a depth RenderTexture with camera.Render and decoding that depth to compare distances and make projector/shadow effects; packaging shared functions in .inc CG include files and adapting Unity’s lighting code to run multiple forward lights in one pass (example: five lights).

AI-written summary · about

  1. 0:00Introduction and scope
  2. 3:09Understanding surface shaders
  3. 6:05Surface shader internals
  4. 10:00Implementing shader effects
  5. 13:15Global property management
  6. 23:25Matrices and camera setups
  7. 29:40Projecting textures with cams
  8. 40:48Depth maps and shadow volume
  9. 48:25CG includes and advanced lighting
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.