# Virtual Shader Source Path - Link custom Shaders - Shadertoy Demo download

**URL:** <https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [December 15, 2018, 1:31am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996 "2018-12-15T01:31:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [December 15, 2018, 1:31am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/1 "2018-12-15T01:31:57Z")

</div>

**ShaderToy Demo - Shader by Inigo Quilez**

Built on top of the empty demo project below in a couple minutes.

> **[GitHub - MaximeDup/UnrealEngine\_ShaderLinking: Simple Unreal Engine project...](https://github.com/MaximeDup/UnrealEngine_ShaderLinking)**
>
> Simple Unreal Engine project showcasing how to link custom HLSL shaders into unreal engine. - GitHub - MaximeDup/UnrealEngine\_ShaderLinking: Simple Unreal Engine project showcasing how to link cust...

You just need to convert GLSL to HLSL: [https://docs.microsoft.com/en-us/win…hlsl-reference](https://docs.microsoft.com/en-us/windows/uwp/gaming/glsl-to-hlsl-reference)

[[shaderproj.zip - Google Drive](https://drive.google.com/open?id=1Vxn2zzCUTMJfFda67YoPOVEyg1rsTZvj)

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/3/e73eb1f1c2e5d180742c279f03f3c733ed58df62.jpeg "Unreal Engine 4 - Custom Shader linking - feat. Shadertoy demo by Inigo Quilez - Free download") ](https://www.youtube.com/watch?v=w3HD-8DPyqw)

]([ShaderProject-Shadertoy.zip - Google Drive](https://drive.google.com/open?id=1nS78RgB0dfOl8JsQmCyD6OkFqYdBWpxD))

Inigo Quilez Youtube channel: [https://www.youtube.com/channel/UCdmAhiG8HQDlz8uyekw4ENw](https://www.youtube.com/channel/UCdmAhiG8HQDlz8uyekw4ENw)  
Inigo Quilez Shadertoy: [Shader - Shadertoy BETA](https://www.shadertoy.com/view/3lsSzf)

* * *

**DEMO - empty project Download for 4.24+**

[https://drive.google.com/open?id=1gz…\_v00gJB1nH7nIA](https://drive.google.com/open?id=1gzDasuiWn9XlgSxbXf_v00gJB1nH7nIA)

Features fully commented code - Setup two shader files : library/final output

 ![demoo.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/5/056eee4c9f4c71e1661783a6eddba50cbef80d7b.jpeg)

* * *

**Full code example at end of post**

 ![iliektrain.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/0/4/04bdf20c55b06774c74ad99f8d53da12cefb6464.png)

Hello developers community,

I used to write custom shaders and store them locally in my game projects root/ “Shaders” directory, which used to be defined as a virtual shader source path by default until 4.21.

If you’re working in C++ an easy way to add it back - While initiating your C++ project, you’ll have a file implementing your project as a ‘game module’ :

```auto

IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, MyUE4Project, "MyUE4Project");

```

Instead of using ‘FDefaultGameModuleImpl’, you can create your own simple game module and override “StartupModule” and “ShutdownModule” (check ShooterGame project for reference).

If UE 4.21: Add "ShaderCore "as a dependency in your project “xxx.build.cs”, otherwise for UE 4.22+ add “RenderCore” :

**4.21:**

```auto

PublicDependencyModuleNames.AddRange(new string] { "RHI", "ShaderCore", ...}

```

**4.22+:**

```auto

PublicDependencyModuleNames.AddRange(new string] { "RHI", "RenderCore", ...}

```

And add back the project “shaders” directory as a potential source for shader files:

```auto

void FMyUE4ProjectModule::StartupModule()
{

    FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
    AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);

}

```

Now you can create a “Shaders” folder at the root of your game project and store your shaders in there !

_Tutorial for custom HLSL shaders: [https://www.raywenderlich.com/57-unr…aders-tutorial](https://www.raywenderlich.com/57-unreal-engine-4-custom-shaders-tutorial)_

http://i.imgur.com/MPDbwxBh.jpg

````auto
 

From your project root folder:

ILikeTrains/Source/ILikeTrains/Public/ILikeTrains.h :

```

#pragma once

#include "CoreMinimal.h"
#include "ModuleManager.h"

class FILikeTrainsModule
/* only IModuleInterface necessary if not hosting gamemode in this module */
: public FDefaultGameModuleImpl
{
public:
    virtual void StartupModule() override;
    virtual void ShutdownModule() override;
};

```

ILikeTrains/Source/ILikeTrains/Private/ILikeTrains.cpp :

```

#include "ILikeTrains.h"
#include "Interfaces/IPluginManager.h"
#include "Logging/LogMacros.h"
#include "Misc/Paths.h"

//#define LOCTEXT_NAMESPACE "FILikeTrainsModule"

void FILikeTrainsModule::StartupModule()
{

#if (ENGINE_MINOR_VERSION >= 21)    
    FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
    AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);
#endif

}

void FILikeTrainsModule::ShutdownModule()
{
}

IMPLEMENT_PRIMARY_GAME_MODULE(FILikeTrainsModule, ILikeTrains, "ILikeTrains" );

```

````

---

<div class="post-metadata">

**Author:** ![II\_ADN\_II](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ii_adn_ii/32/1194656_2.png) [@II\_ADN\_II](https://forums.unrealengine.com/u/II_ADN_II)\
**Post date:** [March 31, 2019, 12:26am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/2 "2019-03-31T00:26:45Z")

</div>

Can you please explain a little more how to add the virtual shader source? I cant found info about implementing a game module in the way you wrote (if not any documentation at all like with everithing else in the engine) .

First time implementing a module, and Im not sure where to insert the code since the shooter game and the default cs files looks very different from what you posted.  
Only similarity is “PublicDependencyModuleNames.AddRange” function.

DearEpic:

God, why does ue4 ALLWAYS have to make EVERITHING so overcomplicated and delete the features that work? T\_T

---

<div class="post-metadata">

**Author:** ![II\_ADN\_II](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ii_adn_ii/32/1194656_2.png) [@II\_ADN\_II](https://forums.unrealengine.com/u/II_ADN_II)\
**Post date:** [April 10, 2019, 2:29am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/3 "2019-04-10T02:29:07Z")

</div>

Bump!!!

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [April 10, 2019, 7:34pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/4 "2019-04-10T19:34:48Z")

</div>

Oh dear, thought i answered, my bad.

Let’s say your project is named ILikeTrains, make it a c++ project by at least adding a c++ class to your game from the engine.

From your project root folder:

ILikeTrains/Source/ILikeTrains/Public/ILikeTrains.h :

```auto

#pragma once

#include "CoreMinimal.h"
#include "ModuleManager.h"

class FILikeTrainsModule
    : public IModuleInterface
{
public:
    virtual void StartupModule() override;
    virtual void ShutdownModule() override;
};

```

ILikeTrains/Source/ILikeTrains/Private/ILikeTrains.cpp :

```auto

#include "ILikeTrains.h"
#include "Modules/ModuleManager.h"
#include "Interfaces/IPluginManager.h"
#include "Logging/LogMacros.h"
#include "Misc/Paths.h"

//#define LOCTEXT_NAMESPACE "FILikeTrainsModule"

void FILikeTrainsModule::StartupModule()
{

#if (ENGINE_MINOR_VERSION >= 21)    
    FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
    AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);
#endif

}

void FILikeTrainsModule::ShutdownModule()
{
}

IMPLEMENT_PRIMARY_GAME_MODULE(FILikeTrainsModule, ILikeTrains, "ILikeTrains" );

```

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_d3a83485](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_d3a83485](https://forums.unrealengine.com/u/anonymous_user_d3a83485)\
**Post date:** [May 22, 2019, 9:23am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/5 "2019-05-22T09:23:37Z")

</div>

Little update for 4.22, You need to replace ShaderCore by RenderCore in  
PublicDependencyModuleNames.AddRange(new string] { “RHI”, “ShaderCore”, …}

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [May 22, 2019, 12:49pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/6 "2019-05-22T12:49:45Z")

</div>

> [@anonymous\_user\_d3a83485](#):
>
> Little update for 4.22, You need to replace ShaderCore by RenderCore in  
> PublicDependencyModuleNames.AddRange(new string] { “RHI”, “ShaderCore”, …}

Thanks , updated the post.

---

<div class="post-metadata">

**Author:** ![XynanXDB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XynanXDB](https://forums.unrealengine.com/u/XynanXDB)\
**Post date:** [August 5, 2019, 1:37pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/7 "2019-08-05T13:37:00Z")

</div>

> [@MaximeDupart](#):
>
> **4/10/2019 Update: Full code example at end of post**
> 
> Hello developers community,
> 
> I used to write custom shaders and store them locally in my game projects root/ “Shaders” directory, which used to be defined as a virtual shader source path by default until 4.21.
> 
> If you’re working in C++ an easy way to add it back:
> 
> While initiating your C++ project, you’ll have a file implementing your project as a ‘game module’ :
> 
> ```auto
> 
> IMPLEMENT_PRIMARY_GAME_MODULE(FDefaultGameModuleImpl, MyUE4Project, "MyUE4Project");
> 
> ```
> 
> Instead of using ‘FDefaultGameModuleImpl’, you can create your own simple game module and override “StartupModule” and “ShutdownModule” (check ShooterGame project for reference).
> 
> If UE 4.21: Add "ShaderCore "as a dependency in your project “xxx.build.cs”, otherwise for UE 4.22+ add “RenderCore” :
> 
> **4.21:**
> 
> ```auto
> 
> PublicDependencyModuleNames.AddRange(new string] { "RHI", "ShaderCore", ...}
> 
> ```
> 
> **4.22+:**
> 
> ```auto
> 
> PublicDependencyModuleNames.AddRange(new string] { "RHI", "RenderCore", ...}
> 
> ```
> 
> And add back the project “shaders” directory as a potential source for shader files:
> 
> ```auto
> 
> void FMyUE4ProjectModule::StartupModule()
> {
> 
> FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
> AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);
> 
> }
> 
> ```
> 
> Now you can create a “Shaders” folder at the root of your game project and store your shaders in there !
> 
> Tutorial for custom HLSL shaders: [https://www.raywenderlich.com/57-unr…aders-tutorial](https://www.raywenderlich.com/57-unreal-engine-4-custom-shaders-tutorial)
> 
> http://i.imgur.com/MPDbwxBh.jpg
> 
> ````auto
> 
> Full example:
> 
> From your project root folder:
> 
> ILikeTrains/Source/ILikeTrains/Public/ILikeTrains.h :
> 
> ```
> 
> #pragma once
> 
> #include "CoreMinimal.h"
> #include "ModuleManager.h"
> 
> class FILikeTrainsModule
> : public IModuleInterface
> {
> public:
> virtual void StartupModule() override;
> virtual void ShutdownModule() override;
> };
> 
> ```
> 
> ILikeTrains/Source/ILikeTrains/Private/ILikeTrains.cpp :
> 
> ```
> 
> #include "ILikeTrains.h"
> #include "Modules/ModuleManager.h"
> #include "Interfaces/IPluginManager.h"
> #include "Logging/LogMacros.h"
> #include "Misc/Paths.h"
> 
> //#define LOCTEXT_NAMESPACE "FILikeTrainsModule"
> 
> void FILikeTrainsModule::StartupModule()
> {
> 
> #if (ENGINE_MINOR_VERSION >= 21)
> FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));
> AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);
> #endif
> 
> }
> 
> void FILikeTrainsModule::ShutdownModule()
> {
> }
> 
> IMPLEMENT_PRIMARY_GAME_MODULE(FILikeTrainsModule, ILikeTrains, "ILikeTrains" );
> 
> ```
> 
> ````

Hi, I have followed the same way to create my own Shaders directory using you method. However, everytime when I recompile, I get an assertion

[2019.08.05-13.35.12:949][399]LogWindows: Error: Assertion failed: !GShaderSourceDirectoryMappings.Contains(VirtualShaderDirectory) [File:D:\Build++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCore.cpp] [Line: 1091]

Please help, I’ll appreciate any help I can get.

---

<div class="post-metadata">

**Author:** ![XynanXDB](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@XynanXDB](https://forums.unrealengine.com/u/XynanXDB)\
**Post date:** [August 5, 2019, 2:10pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/8 "2019-08-05T14:10:40Z")

</div>

> [@XynanXDB](#):
>
> Hi, I have followed the same way to create my own Shaders directory using you method. However, everytime when I recompile, I get an assertion
> 
> [2019.08.05-13.35.12:949][399]LogWindows: Error: Assertion failed: !GShaderSourceDirectoryMappings.Contains(VirtualShaderDirectory) [File:D:\Build++UE4\Sync\Engine\Source\Runtime\RenderCore\Private\ShaderCore.cpp] [Line: 1091]
> 
> Please help, I’ll appreciate any help I can get.

I have solved it. The assertion point was hit because GShaderSourceDirectoryMappings stored the directory we are trying to set. To resolve this, we just need to ResetAllShaderSourceDirectoryMappings() at ShutdownModule();

In ProjectName.cpp,

```auto

class FCustomShaderModule : public FDefaultGameModuleImpl
{ virtual void StartupModule() override
{
  [INDENT=2]FString ShaderDirectory = FPaths::Combine(FPaths::ProjectDir(), TEXT("Shaders"));[/INDENT]
  [INDENT=2]AddShaderSourceDirectoryMapping("/Project", ShaderDirectory);[/INDENT]
  }

  virtual void ShutdownModule() override
{
  [INDENT=2]ResetAllShaderSourceDirectoryMappings();[/INDENT]
  }
 };
IMPLEMENT_PRIMARY_GAME_MODULE( FCustomShaderModule, ProjectName, "ProjectName" );

```

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [August 9, 2019, 8:26am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/9 "2019-08-09T08:26:38Z")

</div>

Glad you firgured it out!  
Haven’t encountered this issue on my side however.

---

<div class="post-metadata">

**Author:** ![ouerkaka](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ouerkaka](https://forums.unrealengine.com/u/ouerkaka)\
**Post date:** [September 14, 2019, 8:30am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/10 "2019-09-14T08:30:00Z")

</div>

Thank you,saved my day！

---

<div class="post-metadata">

**Author:** ![II\_ADN\_II](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ii_adn_ii/32/1194656_2.png) [@II\_ADN\_II](https://forums.unrealengine.com/u/II_ADN_II)\
**Post date:** [November 25, 2019, 7:50pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/11 "2019-11-25T19:50:28Z")

</div>

Thank god, It worked !^^

I dont understand how this is not by default. So much trouble for such a simple thing

---

<div class="post-metadata">

**Author:** ![mrboni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mrboni](https://forums.unrealengine.com/u/mrboni)\
**Post date:** [December 8, 2019, 3:05pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/12 "2019-12-08T15:05:19Z")

</div>

This only compiles for me when I comment out //#include “Interfaces/IPluginManager.h”

Once compiled and run I still can’t load from the Project/Shaders folder

Any ideas?

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [December 8, 2019, 3:39pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/13 "2019-12-08T15:39:20Z")

</div>

Think i’ll make a small demo project and add it to the main post

---

<div class="post-metadata">

**Author:** ![blurryroots](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blurryroots/32/490122_2.png) [@blurryroots](https://forums.unrealengine.com/u/blurryroots)\
**Post date:** [February 23, 2020, 2:37pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/14 "2020-02-23T14:37:05Z")

</div>

## Hey @MaximeDupart thanks for sharing your setup. Developing shaders in a game mode certainly has its benefits. I configured my environment to include custom shaders in plugins. You can read about my setup in [this blog post](https://biq.medium.com/configuring-unreal-engine-for-custom-shader-development-biq-cf79f72e7137?source=user_profile---------5----------------------------).

Edit: Fixed [link](https://biq.medium.com/configuring-unreal-engine-for-custom-shader-development-biq-cf79f72e7137?source=user_profile---------5----------------------------).

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b268d53e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b268d53e](https://forums.unrealengine.com/u/anonymous_user_b268d53e)\
**Post date:** [March 18, 2020, 5:00pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/15 "2020-03-18T17:00:08Z")

</div>

Any thought on how to achieve this from Blueprints? Many thanks… Have been trying for a while to have my custom shaders local to the Project. (Currently they have to reside under Program Files\Epic…\UE2.24\Engine\Shaders which is a GIT nightmare)

Thanks!!

---

<div class="post-metadata">

**Author:** ![smelnick97](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@smelnick97](https://forums.unrealengine.com/u/smelnick97)\
**Post date:** [March 18, 2020, 7:17pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/16 "2020-03-18T19:17:59Z")

</div>

> [@anonymous\_user\_b268d53e](#):
>
> Any thought on how to achieve this from Blueprints? Many thanks… Have been trying for a while to have my custom shaders local to the Project. (Currently they have to reside under Program Files\Epic…\UE2.24\Engine\Shaders which is a GIT nightmare)
> 
> Thanks!!

I don’t think it is possible to do this from Blueprints, as (to the best of my knowledge) the shader source directories must be initialized at module startup, and there is no way to modify an engine module from Blueprints. Additionally, there just isn’t a function to add a shader source directory in Blueprints.

Is there any particular reason that you are unable to add the shader paths via C++?

---

<div class="post-metadata">

**Author:** ![Odd\_Way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Odd\_Way](https://forums.unrealengine.com/u/Odd_Way)\
**Post date:** [April 4, 2020, 11:22am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/17 "2020-04-04T11:22:45Z")

</div>

I downloaded Tommy Tran’s paint effect which looks fantastic in the 4.20 version but unfortunately doesn’t work in 4.24.

I followed @**[XenthorXi](https://forums.unrealengine.com/member/649466-xenthorxi)**’s tutorial but it still doesn’t work.

Here are the errors :

 ![Errors.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/7/1/7156c243d4858b5f520048fa8d2a5d936f1e7b5f.jpeg)

The edited files :

 ![Code.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/3/b/3b4bc93bf16033358b37bcd262ab8154d9c65f9a.jpeg)

And the “Shaders” folder in the project folder :

 ![Folder.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/3X/1/2/126d34d2abf8b0eb8ffd909b2c295dccb7f6c6b6.jpeg)

I’m a complete noob with C++ so if anyone could help me it would be much appreciated 🙂

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [April 6, 2020, 11:44am UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/18 "2020-04-06T11:44:06Z")

</div>

I wish i could have a name for Epic games Games, and a name for Epic Games forums. i end up having to change my name every time i wanna stream a multiplayer game from Epic game store, i’ll upload a demo project for you

---

<div class="post-metadata">

**Author:** ![MaximeDupart](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maximedupart/32/1194606_2.png) [@MaximeDupart](https://forums.unrealengine.com/u/MaximeDupart)\
**Post date:** [April 6, 2020, 1:50pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/19 "2020-04-06T13:50:35Z")

</div>

Added downloadable Demo Project for 4.24+ :

[https://drive.google.com/open?id=1gz…\_v00gJB1nH7nIA](https://drive.google.com/open?id=1gzDasuiWn9XlgSxbXf_v00gJB1nH7nIA)

[USER=“874847”]Odd Way[/USER] common errors are: external shader file is empty or the extension is actually wrong (your file is actually a .txt and you’ve hidden this extension).

I added a fully commented project with two external shader linked.

---

<div class="post-metadata">

**Author:** ![Odd\_Way](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Odd\_Way](https://forums.unrealengine.com/u/Odd_Way)\
**Post date:** [April 13, 2020, 4:24pm UTC](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996/20 "2020-04-13T16:24:19Z")

</div>

@MaximeDupart Sorry for the late answer i was busy these days.  
Thank you very much for your solution i will look at your project. Nonetheless i succedeed to have it working just with a simple copy/paste in a “custom material node” 🙂

[Next page](https://forums.unrealengine.com/t/virtual-shader-source-path-link-custom-shaders-shadertoy-demo-download/119996.md?page=2)
