Unity-SimpleGrid-Shader

所属分类:模式识别(视觉/语音等)
开发工具:ShaderLab
文件大小:21KB
下载次数:0
上传日期:2019-07-24 02:18:41
上 传 者sh-1993
说明:  简单的alpha剪切网格着色器和GUI可自定义参数
(Simple alpha cutout grid shader and GUI customizable parameters)

文件列表:
GridMat.mat (2273, 2019-07-24)
GridShader.shader (2848, 2019-07-24)
GridShaderUNLIT.shader (2541, 2019-07-24)
LICENSE (1210, 2019-07-24)
SimpleGridShader.unitypackage (16642, 2019-07-24)

# Unity-SimpleGrid-Shader Simple procedural grid shader with GUI customizable parameters # Usage Drag and drop both Shader and Material files in your project. The Material can then be edited and also dropped on a gameobject mesh inside Unity. To edit the grid material, the following GUI options are available. ![Available Material Parameters](https://i.imgur.com/rzwV2OR.png) Line Color, Cell Color and Selected Color all represent their respective grid components. Colors use Alpha Cutoff for full transparency by setting the alpha channel to 0. Grid Size is the amount of cells in the grid. You must make a simple edit to the shader itself to go above 100. Line Size is the size of lines making up the grid. Select Cell enables or disables the cell "Selected" by the parameters Selected Cell X and Y. It only colors a certain cell using a different color, but the base code to "Select" cells in the grid can be used in more complex ways. The parameters shown above create the following grid. ![Example Grid](https://i.imgur.com/Vaeo80i.png) # More information There is no aspect ratio based scaling by default, to keep cells squared keep the plane mesh square ( or implement your own aspect ratio scaling ) The selected cell can also be chosen by editing the material using the SetFloat value, to potentially make the material interactive. ( See official unity docs to learn more ) The shader, when applied to new materials, can be found under "PDTShaders/TestGrid".

近期下载者

相关文件


收藏者