#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
#Heading 1 ##Heading 2 ###Heading 3 ####Heading 4 #####Heading 5 ######Heading 6
Paragraph
| * text=auto eol=lf | |
| *.{cmd,[cC][mM][dD]} text eol=crlf | |
| *.{bat,[bB][aA][tT]} text eol=crlf |
| // When creating shaders for Universal Render Pipeline you can you the ShaderGraph which is super AWESOME! | |
| // However, if you want to author shaders in shading language you can use this teamplate as a base. | |
| // Please note, this shader does not necessarily match perfomance of the built-in URP Lit shader. | |
| // This shader works with URP 7.1.x and above | |
| Shader "Universal Render Pipeline/Custom/Physically Based Example" | |
| { | |
| Properties | |
| { | |
| // Specular vs Metallic workflow | |
| [HideInInspector] _WorkflowMode("WorkflowMode", Float) = 1.0 |
| # Build results. | |
| /[Bb]uild/ | |
| /[Bb]uilds/ | |
| # Log files. | |
| *.log | |
| # Unity cache and temp directories. | |
| /Library/ | |
| /Temp/ |
| sudo apt install mingw-w64 cmake | |
| cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-x86_64-w64-mingw32.cmake .. |
| /* | |
| * The number of bits of precision per color channel are log_2(c_precision), | |
| * in this case 7 bits per color, or 21 bits total. | |
| * | |
| * A c_precision of 128 fits within 7 base-10 digits. | |
| * | |
| * NOTE: an IEEE 754 float can only express 7 digits exactly for all digits. | |
| */ | |
| const float c_precision = 128.0; | |
| const float c_precisionp1 = c_precision + 1.0; |
| // NOTE: ScriptableRenderPass template created for Unity 2020.1 and URP 8 | |
| // SOURCES: some used references to investigate what kind of different setups people use, lots of variety out there! | |
| // https://gist.github.com/Refsa/54da34a9e2fc8e45472286572216ad17 | |
| // https://gist.github.com/wonkee-kim/1792cd4fced96f98ae4a09ec500a3177 | |
| // https://zhuanlan.zhihu.com/p/232450616 (in chinese, but provides some code for custom render pass) | |
| // https://samdriver.xyz/articles/scriptableRender.htm (2019.3) | |
| // https://gist.github.com/Elringus/69f0da9c71306f1ea0f575cc7568b31a (LWRP) | |
| // https://github.com/Unity-Technologies/UniversalRenderingExamples/tree/release/2020.1 (2020.1 branch for SRP 8.2.0) |