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