This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define moire_mitigation_factor 64.0 | |
| #define warpX 0.031 | |
| #define warpY 0.041 | |
| // Convert from linear to sRGB. | |
| //float Srgb(float c){return(c<0.0031308?c*12.92:1.055*pow(c,0.41666)-0.055);} | |
| vec4 Srgb(vec4 c){return pow(c, vec4(1.0 / 2.2));} | |
| // Convert from sRGB to linear. | |
| //float Linear(float c){return(c<=0.04045)?c/12.92:pow((c+0.055)/1.055,2.4);} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| bl_info = { | |
| "name": "Run Script in PyConsole", | |
| "author": "CoDEmanX", | |
| "version": (1, 0), | |
| "blender": (2, 80, 0), | |
| "location": "Python Console > Console > Run Script", | |
| "description": "Execute the code of a textblock within the python console.", | |
| "warning": "", | |
| "wiki_url": "", | |
| "tracker_url": "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Shader "Universal Render Pipeline/Custom/VertexLit" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _Gain ("Gain", Float) = 1.5 | |
| _Color ("Color", Color) = (1,1,1,1) | |
| _EdgeColor ("Edge Color", Color) = (0,0,0,1) | |
| [Toggle] _RemoveDiag("Remove diagonals", Float) = 0. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class ExtensionMethods | |
| { | |
| public static TaskAwaiter GetAwaiter(this AsyncOperation asyncOp) | |
| { | |
| var tcs = new TaskCompletionSource<object>(); | |
| asyncOp.completed += obj => { tcs.SetResult(null); }; | |
| return ((Task)tcs.Task).GetAwaiter(); | |
| } | |
| } |
OlderNewer