Construct 3 r380

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

  • Order by
  • 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