Search Unity

[RELEASED] Marvelous Techniques

Discussion in 'Assets and Asset Store' started by Kirnu-Interactive, Aug 22, 2015.

  1. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Hi,

    no it was a URP template project... i just though at first that the URP shader is some lighting model include file that has to be replaced or something, however i found it's just the URP version of the master shader, so i got it working !
     
  2. zhulaober

    zhulaober

    Joined:
    Jan 19, 2016
    Posts:
    21
    Hi,

    I am using CumstomLightingSoftFogAlpha shader. When checked distance fog box, I got an error : Shader error in 'Kirnu/Marvelous/CustomLightingSoftFogAlpha': invalid subscript 'fogPower' at line 93 (on d3d11).

    What can I do to fix this error?
     
  3. Kirnu-Interactive

    Kirnu-Interactive

    Joined:
    May 5, 2014
    Posts:
    157
    Can you send me an email and I'll provide fixed version for you
     
  4. zhulaober

    zhulaober

    Joined:
    Jan 19, 2016
    Posts:
    21
    guoer_04@163.com
     
  5. CJ-BPO

    CJ-BPO

    Joined:
    Oct 12, 2020
    Posts:
    4
    Your package is no longer available in the Asset Store :-(
    What happened?

    Cheers!
     
  6. zhulaober

    zhulaober

    Joined:
    Jan 19, 2016
    Posts:
    21
    Where can I find the URP version of master shader. I email the developer, but did not get reply.
     
  7. Vagabond_

    Vagabond_

    Joined:
    Aug 26, 2014
    Posts:
    1,148
    Can't remember. I just tried importing it in URP project but can not make it work !
     
  8. zhulaober

    zhulaober

    Joined:
    Jan 19, 2016
    Posts:
    21
    Thanks for your reply. I tried too.
     
  9. neptoonism

    neptoonism

    Joined:
    Aug 19, 2019
    Posts:
    19
    Most of the marvelous techniques shaders will work in URP if you add the "LightMode"="UniversalForward" tag to them.
     
  10. neptoonism

    neptoonism

    Joined:
    Aug 19, 2019
    Posts:
    19
    To be clear - what's needed is to change the LightMode tag from ForwardBase to UniversalForward. For example - doing that on line 96 of the CustomLightingMaster shader makes it render in URP - doing the same thing to various other shaders in the packages will get them rendering as well.

    Tip - when importing marvelous techniques into a new URP project, delete the ImageEffects folder and the scripts that end in 'PP' (they are for post processing stack which doesn't work in URP anyway). That will prevent errors from appearing if you don't have post processing stack installed.
     
  11. zhulaober

    zhulaober

    Joined:
    Jan 19, 2016
    Posts:
    21
    Thank you. It works.