Documentation of MadCommon.glsl
  • mw/mf0
    member
    Posts: 10
    Joined: Sat Jun 10, 2023 2:19 am

    Documentation of MadCommon.glsl

    by mw/mf0 » Fri Jun 30, 2023 10:36 pm

    Asking with Laser Materials in mind.
    Where/how to find out whats inside MadCommon.glsl?

    Btw. how does userData work? What values is it initialized with?
    And userData = vec4( userData.x+1 ,0 ,0 ,0 ); has no impact, I was expecting to increase per cycle, but nothing happens.

    Any help/reply appreciated!
  • mw/mf0
    member
    Posts: 10
    Joined: Sat Jun 10, 2023 2:19 am

    Re: Documentation of MadCommon.glsl

    by mw/mf0 » Sat Jul 01, 2023 12:47 pm

    Ok, found it. Under Resources/Guides there is a pdf for MadNoise and one for MadSDF, MadCommon however is outlined in "Materials Documentation.pdf" (not Laser Material Doc ..).

    The question of the mysterious workings of userData remains however. I've checked all LaserMaterials, no example nowhere. There are two LaserMaterials that output into userData, but where does that go, how is this used again??
  • mw/mf0
    member
    Posts: 10
    Joined: Sat Jun 10, 2023 2:19 am

    Re: Documentation of MadCommon.glsl

    by mw/mf0 » Tue Jul 04, 2023 11:15 pm

    Is this forum dead?

    So far I found at the end of the LaserMaterials documentation that I have to fetch "mm_LastFrameData" to access last frames data, including userData. However, this doesn't work:
    error::C:/Users/...test.fs:29: error C1503: undefined variable "mm_LastFrameData"
    What's the fix?

Who is online

Users browsing this forum: No registered users and 1 guest