You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .docs/guides/GettingStarted.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Once everything is imported let's start creating our first modular shader!
13
13
14
14
Everything starts with a `Modular shader` asset. This Asset contains all the basic information about the shader.
15
15
16
-
Create a new asset file by selecting `Assets > Create > VRLabs > Modular Shader > Modular Shader` (alternative you can bring up the `Assets` menu by right clicking in the project tab).
16
+
Create a new asset file by selecting `Assets > Create > Shader > VRLabs > Modular Shader > Modular Shader` (alternative you can bring up the `Assets` menu by right clicking in the project tab).
17
17
18
18
> [!WARNING]
19
19
> All assets specific for the Modular Shader System like Modular Shader, Shader module and Template assets should always go inside an `Editor` folder, since they're used only in editor to generate the shaders.
@@ -31,7 +31,7 @@ After that there's the Custom editor value. If you're using a custom inspector y
31
31
Now, let's get into the meat and let's make the base skeleton for our shader.
32
32
This skeleton will be in the `template asset` that will be placed in the `shader template` field.
33
33
34
-
Create the new template file by selecting `Assets > Create > VRLabs > Modular Shader > Template`, open the file in any text editor and paste the following code:
34
+
Create the new template file by selecting `Assets > Create > Shader > VRLabs > Modular Shader > Template`, open the file in any text editor and paste the following code:
35
35
36
36
[!code[Main](Code/BaseTemplate.txt)]
37
37
@@ -70,7 +70,7 @@ Perfect, now the shader has all the properties it uses. But it still doesn't out
70
70
71
71
## Creating a Module
72
72
73
-
Time to create a module to give life to this shader, first create the module asset file by selecting `Assets > Create > VRLabs > Modular Shader > Shader Module`.
73
+
Time to create a module to give life to this shader, first create the module asset file by selecting `Assets > Create > Shader > VRLabs > Modular Shader > Shader Module`.
74
74
75
75
The informations area of the asset is similar to the modular shader assets, but with some key differences:
76
76
- The id **needs** to be filled in since it's going to be used by the system to check for duplicate modules, incompatibilities, and dependencies.
Copy file name to clipboardExpand all lines: .docs/guides/ModularShaderComponents/ShaderModule.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ title: Shader Module
7
7
8
8
A module is a component that can be added and removed from a modular shader. Like the modular shader asset it has a `Base Information` and `Settings` sections, but unlike in the modular shader, you actually need to set at least some of the `Base Information` settings, since they're used for checking module compatibility inside a modular shader.
9
9
10
-
You can create a shader module asset by selecting the menu `Assets > Create > VRLabs > Modular Shader > Shader Module`.
10
+
You can create a shader module asset by selecting the menu `Assets > Create > Shader > VRLabs > Modular Shader > Shader Module`.
Copy file name to clipboardExpand all lines: .docs/guides/ModularShaderComponents/TemplateAssets.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,6 @@ A template asset is an asset that contains shader code.
9
9
10
10
Its purpose depends on where this template asset is used, for example if it's used for a function definition, it will be used for the function declaration, if it's used for the templates section of a module, it's going to just be placed as code under that keyword.
11
11
12
-
You can create a template asset by selecting the menu `Assets > Create > VRLabs > Modular Shader > Template`.
12
+
You can create a template asset by selecting the menu `Assets > Create > Shader > VRLabs > Modular Shader > Template`.
13
13
14
14
The asset doesn't have an editable inspector, but you can edit the file itself in any text editor.
Copy file name to clipboardExpand all lines: .docs/guides/ModularShaderComponents/TemplateCollectionAssets.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,4 +11,4 @@ Like the template asset it is just a text file where you can write shader code,
11
11
12
12
You can have multiple template keywords like the above, and every new one ends the previous template and starts the new one. The template name will be the name of that template keyword.
13
13
14
-
You can create a template collection asset by selecting the menu `Assets > Create > VRLabs > Modular Shader > Template Collection`.
14
+
You can create a template collection asset by selecting the menu `Assets > Create > Shader > VRLabs > Modular Shader > Template Collection`.
0 commit comments