https://linen.dev logo
Join Discord
Powered by
# lime
  • h

    hallowed-ocean-84954

    05/25/2023, 3:30 PM
    ok interesting - in Main I use the OpenGLRenderer once in a piece of code I simply don't remember the purpose for - I call setShader(null) on it. Thereafter everywhere else I use WebGL2RenderContext which I get this way in my openfl addedToStage() event handler:
    Copy code
    _gl = cast(stage.window.context.webgl, WebGL2RenderContext);
  • h

    hallowed-ocean-84954

    05/25/2023, 3:30 PM
    it's perhaps an Openfl thing that even makes this possible
  • p

    powerful-morning-89

    05/25/2023, 3:31 PM
    WebGL2RenderContext is an abstract over probably another abstract. So that cast is not actually checked, since all the contexts end up being the same type at runtime.
  • h

    hallowed-ocean-84954

    05/25/2023, 3:32 PM
    I knew it was an abstract but it does have additional constants that I could not access from WebGLRenderContext - not many that I needed but definitely some
  • h

    hallowed-ocean-84954

    05/25/2023, 3:34 PM
    but I'm not sure if the runtime type is the same exactly how I get access to more stuff this way - unless the runtime type is the superset and the various abstracts restrict things - I did look at it at one point
  • p

    powerful-morning-89

    05/25/2023, 3:35 PM
    The eventual underlying type is
    NativeOpenGLRenderContext
    for all of the contexts.
  • h

    hallowed-ocean-84954

    05/25/2023, 3:44 PM
    That rings a bell. I'll have to look again to get it straight in my head. Thanx for the pointer
  • c

    calm-horse-72201

    05/25/2023, 3:55 PM
    i have decided to add more documentation to the lime project schema and eventually make a PR for it because the schema's documentation is so bare
  • t

    tall-teacher-57409

    05/26/2023, 8:21 AM
    https://cdn.discordapp.com/attachments/769686258049351722/1111569814901764187/2023-05-26_10-12-52.mp4
  • t

    tall-teacher-57409

    05/26/2023, 8:22 AM
    lightning works good 👍
  • h

    hallowed-ocean-84954

    05/26/2023, 3:29 PM
    Looks good
  • h

    hallowed-ocean-84954

    05/26/2023, 3:29 PM
    What video capture tool is that ?
  • b

    broad-gpu-14081

    05/26/2023, 3:34 PM
    OBS ?
  • b

    broad-gpu-14081

    05/26/2023, 3:35 PM
    https://obsproject.com/
  • h

    hallowed-ocean-84954

    05/26/2023, 3:39 PM
    I wondered
  • t

    tall-teacher-57409

    05/26/2023, 7:46 PM
    yup obs as t1m said
  • h

    hallowed-ocean-84954

    05/26/2023, 7:49 PM
    Ah ok.
  • t

    tall-teacher-57409

    05/26/2023, 7:53 PM
    lightning is a very involved topic, im not sure if I 100% remember what's going on up to this point
  • t

    tall-teacher-57409

    05/26/2023, 7:54 PM
    but it adds very interesting effects
  • h

    hallowed-ocean-84954

    05/26/2023, 8:54 PM
    Yep. Faking texture overall seems very involved. And I haven't gotten to the pbr stuff yet
  • h

    hallowed-ocean-84954

    05/26/2023, 8:55 PM
    The phuong lighting is the tip of the iceberg
  • c

    curved-lifeguard-6743

    05/27/2023, 4:50 AM
    Is there any way to like copy a folder full of dlls to application's dir using lime include.xml?
  • t

    tall-teacher-57409

    05/27/2023, 7:06 AM
    😭
  • b

    broad-gpu-14081

    05/27/2023, 3:37 PM
    it should be
  • b

    broad-gpu-14081

    05/27/2023, 3:40 PM
    Probably
    <dependency />
    will do, but you need to dig Lime src to see what it can do, the tag is poorly documented.
  • c

    curved-lifeguard-6743

    05/27/2023, 3:41 PM
    Ok
  • l

    lively-easter-28723

    05/27/2023, 9:15 PM
    I need to remove all pngs in
    assets/preload/images/loadingMenu
    is that possible?

    https://cdn.discordapp.com/attachments/769686258049351722/1112126926920876072/Screenshot_2023-05-27_at_2.14.17_PM.png▾

  • b

    broad-gpu-14081

    05/28/2023, 4:49 AM
    Looks like your code should to it.
  • b

    broad-gpu-14081

    05/28/2023, 4:49 AM
    do not forget to remove actual pngs from your export
  • b

    broad-gpu-14081

    05/28/2023, 4:50 AM
    there should
    lime
    command for it, I belive