Geometry Shader?

Is the geometry shader available at the moment? I thought I saw somewhere that someone had used it, but I may be wrong...

Comments

  • MegalomaniakMegalomaniak Posts: 4,430Admin

    The shader language api does not expose it. But on the engine source level perhaps you could.

  • CalinouCalinou Posts: 1,140Admin Godot Developer
    edited July 2021

    @Megalomaniak said:
    The shader language api does not expose it. But on the engine source level perhaps you could.

    If you take both desktop and mobile/web platforms into account, Godot uses OpenGL versions that do not support geometry shaders. With a lot of work, you could modify the engine source code to expose geometry shaders in GLES3 on desktop platforms only (since GLES3 maps to OpenGL 3.3 on desktop platforms).

  • MegalomaniakMegalomaniak Posts: 4,430Admin

    Yeah, that's what I'd expect.

  • Lethal Raptor GamesLethal Raptor Games Posts: 26Member

    Thanks, will 4.0 support it? Is Vulkan supposed to replace GLES3...?

  • MegalomaniakMegalomaniak Posts: 4,430Admin

    4.0 should have both an advanced/vulkan renderer and a lighter GLES renderer.

    I do not know of any plans in regards to geometry shaders, but realistically you'd be better off using compute shaders instead of geometry shaders for performance reasons anyways. And down the line may even get access to mesh shaders in the future perhaps.

  • cyberealitycybereality Posts: 3,792Moderator

    I haven't worked with geometry shaders myself (and they do have uses) but most people I've heard from say that they are bad, low performance, and in general almost no games use them.

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file