Contains shaders for prototype grid and ruler.
It's based on Shader Graph
with few custom .hlsl
functions and includes.
- Click
+
button in Package Manager window - Choose
Add package from git URL...
- Type
https://github.com/vasdxyz/xyz.vasd.proto-paper.git
That's it!
There are two shaders:
Xyz.Vasd/ProtoPaper/ProtoPaper-Lit
for lite version
and
Xyz.Vasd/ProtoPaper/ProtoPaper-Unlit
for unlit version.
Note, you can install only your currently using Render Pipeline subfolder.
Packages/xyz.vasd.proto-paper/Content/Demo/HDRP/XV@[email protected]
Packages/xyz.vasd.proto-paper/Content/Demo/URP/XV@[email protected]
Packages/xyz.vasd.proto-paper/Content/Demo/BuiltIn/XV@[email protected]
Below are listed all properties to set in material.
Local
means grid zero point is determined by mesh zero point (pivot).
Global
means grid zero point is world coordinates zero (0, 0, 0).
0 - 1
Scale of printed text (Grid Size and Grid Position).
Settings for main grid.
Boolean.
Enable/Disable grid cells rendering.
Boolean.
Enable/Disable grid text (cell size and position) rendering.
Slider: 0 - 999
Determines main grid cell size in units.
Note, it's floored in the shader, so it's like an interger.
For example, 10.5
will be 10
.
Slider: 0 - 1
Size of grid border in percent of cell size cell size.
Float.
Determines the distance on which grid will be totaly faded out.
0
means fading is disabled.
Note, it's scaled according to cell and border size.
Color.
Grid borders and text color.
Properties for subgrid.
Boolean.
Enable/Disable subgrid cells rendering.
Boolean.
Enable/Disable subgrid text (cell size and position) rendering.
Number of cells per each main grid cell.
Float.
Determines the distance on which subgrid will be totaly faded out.
0
means fading is disabled.
Note, it's scaled according to cell and border size.
Color.
Subgrid borders and text color.
Basic background color and texture.
Color.
Background tint.
Texture.
Background texture for cells. Each cell has uv from 0,0 to 1,1, so it will be tiled according to main grid cell size.