Construct 3 r380

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

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

    Add "supports-3d-direct-rendering": true to addon.json and the effect compositor will not force a pre-draw. There could be other cases where it forces a pre-draw though, it depends on the effect.

    • awesome, got one of my shaders working for 3d and also was able to handle depth with:

      gl_FragDepth = (outColor.a == 0.0 ? 1.0 : gl_FragCoord.z);

      I did notice however that srcOriginStart and End unfortunately only works as expected for the back face of a 3dShape (I tried with this gradient shader: construct.net/en/make-games/addons/1107/gradient that draws a linear gradient from start to end). I'm not sure if that is a bug or by design. I might report it after some more experimenting.

      edit: it only doesn't work as expected if the face image is a tiledbackground or 9patch