Construct 3 r498

You're viewing a single comment in a conversation. View all the comments
  • 2 Comments

  • Order by
    • [-] [+]
    • UpvoteUpvote 2 DownvoteDownvote
    • Ashley's avatar
    • Ashley
    • Construct Team Founder
    • 2 points
    • *
    • (1 child)

    There's a PluginInfo method SetSupports3DLighting() in this release so third-party addons can opt-in to 3D lighting support (I forgot to add that to the changelog, sorry). Custom geometry can use MeshData and call either copyNormalBuffer() to set a normal buffer, or computeNormalBuffer() to calculate it from vertex positions.

    Rendering should not be affected by anything previously drawn - if so it's a bug so please file an issue!

    • Thank you, Ashley, for the very quick and precise reply! I tested it immediately: SetSupports3DLighting(true) together with MeshData, computeNormalBuffer() and drawMeshData() works with our custom animated mesh in WebGPU Preview. Multiple colored lights and the standard Material Properties are working correctly.

      Your answer saved us a lot of time and confirmed the right integration path. Much appreciated! :)