Construct 3 r435

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

  • Order by
  • oh awesome, so we just do:

    struct ShaderParams {

    myParam : f16orf32

    };

    Thanks!

      • [-] [+]
      • UpvoteUpvote 1 DownvoteDownvote
      • Ashley's avatar
      • Ashley
      • Construct Team Founder
      • 1 points
      • (0 children)

      Actually I don't think f16 will work for shader parameters - currently Construct always writes those as f32. However you can immediately cast the value to f16 and do any further calculations with reduced precision.