readme update
This commit is contained in:
1 parent
29e55b293e
commit
10037724e2
1 file changed
+5
-5
@@ -19,7 +19,7 @@ ThoMagicRenderer is available as a Unity Package Manager (UPM) package.
|
||||
2. Open **Edit > Project Settings > Package Manager** and add a scoped registry if required.
|
||||
3. Add the package via Git URL:
|
||||
```sh
|
||||
https://github.com/yourusername/ThoMagicRenderer.git
|
||||
https://git.incobyte.de/public/ThomagicRenderer.git
|
||||
```
|
||||
4. Wait for Unity to download and install the package.
|
||||
5. Follow the usage guide to set up your scene.
|
||||
@@ -36,7 +36,7 @@ To use **ThoMagicRenderer** in Shader Graph:
|
||||
For all passes, include the following pragma directives:
|
||||
```hlsl
|
||||
#pragma multi_compile_instancing
|
||||
#pragma instancing_options procedural:setupThoMagic
|
||||
#pragma instancing_options procedural:SetupThoMagicRenderer
|
||||
```
|
||||
Ensure that `ThoMagicRendererInclude.cginc` is included after the URP include files:
|
||||
```hlsl
|
||||
@@ -45,7 +45,7 @@ Ensure that `ThoMagicRendererInclude.cginc` is included after the URP include fi
|
||||
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Color.hlsl"
|
||||
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/UnityInstancing.hlsl"
|
||||
#include "Packages/com.unity.render-pipelines.universal/ShaderLibrary/ShaderGraphFunctions.hlsl"
|
||||
#include "ThoMagicRenderer/Shaders/Include/ThoMagicRendererInclude.cginc"
|
||||
#include "ThoMagicRenderer/Shaders/Include/ThoMagicRenderer.cginc"
|
||||
```
|
||||
Modify your shader structs and functions:
|
||||
```hlsl
|
||||
@@ -81,13 +81,13 @@ half4 frag(VertexOutput IN)
|
||||
HDRP shaders follow the same pattern as URP shaders. Include the necessary directives:
|
||||
```hlsl
|
||||
#pragma multi_compile_instancing
|
||||
#pragma instancing_options procedural:setupThoMagic
|
||||
#pragma instancing_options procedural:SetupThoMagicRenderer
|
||||
```
|
||||
Ensure `ThoMagicRendererInclude.cginc` is included after the HDRP include files:
|
||||
```hlsl
|
||||
#include "Packages/com.unity.render-pipelines.core/ShaderLibrary/Common.hlsl"
|
||||
#include "Packages/com.unity.render-pipelines.high-definition/Runtime/ShaderLibrary/ShaderVariables.hlsl"
|
||||
#include "ThoMagicRenderer/Shaders/Include/ThoMagicRendererInclude.cginc"
|
||||
#include "ThoMagicRenderer/Shaders/Include/ThoMagicRenderer.cginc"
|
||||
```
|
||||
Modify your shader structs and functions:
|
||||
```hlsl
|
||||
|
||||
Reference in new issue
Block a user