![]() ![]() A value of 1.0 makes the secondary grid as visible as the primary grid, and a value of 0 will fade it out completely. Secondary grid intensity This parameter lets you set the intensity of the secondary grid lines, to help with visual clarity.Secondary grid line width Set to 0.005 by default, a quarter of the primary grid’s line width.I have set this to 25 by default to create a 4×4 grid within each primary grid cell. Secondary grid size The size of the secondary grid’s cells, in centimeters.By default this is set to true, because subdivisions are sexy. Use secondary grid This boolean will toggle an additional set of grid lines.I found a value of 0.02 looks best in my demo scene. The strength of the two lines that intersect the origin will be double this setting. Primary grid line width The thickness of the primary grid lines.By default this is set to 50, which means grid lines will be spaced at half-meter intervals. Primary grid size The length of a single grid cell in centimeters.Line color The color of the shader’s grid lines. ![]() Inside our shader I am dividing certain parameters by 100 because I prefer to work in centimeters. As we’ve already covered here on techarthub, Unity units are usually measured in meters. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |