shader compilation

Download Shader compilation

Post on 06-May-2015

1.094 views

Category:

Engineering

9 download

Embed Size (px)

DESCRIPTION

kasastudy

TRANSCRIPT

  • 1.Shader Compilation (cagetu79@gmail.com) @cagetu #kasastudy

2. Agenda Shader HLSL / GLSL Shader Build Shader Graph Uber Shader Mobile Shader Shader Compilation 3. Shader ! / HLSL DirectX Shader Model DirectX11.2 / SM 5.0 GLSL OpenGL OpenGL / OpenGL ES 4. Shader Build (cg, hlsl, glsl, ) But, , 5. Shader Explosion ! Static or Skinned Model +Lighting (or No Light) +Shadow (or No Shadow) +Cartoon (or No Cartoon) +Etc.. !!! 6. Shader Explosion PC PC + 7. !!! 8. Shader Explosion Solution Uber On/Off 9. [UDK : DefaultVertexShader.msf] 10. Shader Editing , Needs 1. . 2. . 3. (?) . Iteration ! 11. Shader Editor Shader Explosion / Shader Editing ? Shader Editor Shader Graph Editor Uber Shader Editor 12. Shader Graph Editor 13. Uber Shader Editor 14. Cross Platform ! PC / Mobile OpenGL ES ! , HLSL GLSL ! PC 15. UE3 OpenGL ES , UberShader , Editor , , 16. Cross Platform , ! ! GLSL 17. !!! 18. . 19. Shader Compilation Unity 3.0 PC HLSL2GLSL glsl-optimizer 20. HLSL to GLSL Translator Aras Pranckeviius ATI HLSL2GLSL ! Hlsl2glslfork http://code.google.com/p/hlsl2glslfork/ 21. GLSL Optimizer , . GLSL ! Mesa3D . GLSL glsl- optimizer http://github.com/aras-p/glsl-optimizer 22. UE4 mcpp hlslcc Cross Compile 23. Metal API IOS8 API Metal Programming Guide Metal Shading Language Metal Shading Language Guide clang LLVM Unreal ShaderCompileWorker ! .. 24. Conclusion 1. Shader Writing Shader Explsion / Shader Editing Issue 2. Shader Generation / Uber Shader 3. Shader Editor Graph Editor / Uber Shader 4. Cross Platform Issue 5. Shader Compilation Compile / Optimize / Cache 25. Conclusion ! ! ( ) . 26. http://blogs.unity3d.com/2010/10/20/shader- compilation-for-multiple-platforms/ http://aras-p.info/blog/2010/09/29/glsl-optimizer/ http://www.slideshare.net/cagetu/gdc-14-bringing- unreal-engine-4-to-opengl http://www.slideshare.net/cagetu/mobile- crossplatformchallenges-siggraph- 15528000?related=1&utm_campaign=related&utm_ medium=1&utm_source=2