Announcement

Collapse
No announcement yet.

[Feature request] Allow plugins to define shader types without having to be preloaded

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    [Feature request] Allow plugins to define shader types without having to be preloaded

    Currently, all IMPLEMENT_SHADER_TYPE macros need to be defined before the shader system is initialised. This means that any plugins that have shaders need to be preloaded specially, and this requires editing the source of the core module.

    To make plugins more self contained, there needs to be a way to work around this requirement. The cheap and nasty way would be to have a list of plugins that have shaders listed in an ini file somewhere.

    Cheers
    John

    #2
    Hi John,

    Have you tried setting the module containing your shader type to PostConfigInit? That might be early enough.

    Cheers,
    Michael Noland

    Comment


      #3
      Originally posted by Michael Noland View Post
      Hi John,

      Have you tried setting the module containing your shader type to PostConfigInit? That might be early enough.

      Cheers,
      Michael Noland
      +1, it definitely works!
      Developer. Bass player. Cats owner. Unreal Engine addicted. Check my.alyamkin.com
      [Plugin] VaRest - REST API with blueprintable JSON plugin
      [Plugin] VaTexAltas - simple way to use texture atlases for UMG

      Comment


        #4
        Originally posted by Michael Noland View Post
        Hi John,

        Have you tried setting the module containing your shader type to PostConfigInit? That might be early enough.

        Cheers,
        Michael Noland
        I can also verify this works.
        FluidSurface Plugin: https://github.com/Ehamloptiran/UnrealEngine/releases
        TextureMovie Plugin: https://github.com/Ehamloptiran/TextureMoviePlugin

        Comment

        Working...
        X