A simple shader variant collection tool for Unity 5.x
Unity's default behaviour is to postpone the compilation / optimization of a shader loaded at runtime until it appears on screen.
See ShaderVariantCollection.WarmUp document for more details.
It collects shader variants which will be used during a play session and save it out as an asset so which can be set on 'Graphics Setting', so it allows preloading that shaders which can prevent shader compilation problem causes cpu spike when a model is firstly shown.
- Shader variant at
Dragonjoon
's blog page - Well described about Unity's shader variants. (written in Korean) - Shader variant at
Es_Program
on Qiita - Well described about conditional compilation of Unity shader and itskeywords
.(written in Japanges) - Using Shader Variant at
vui
on Qiita -AddShaderVariantsWindow
was found on here. (written in Japanges)