Skip to content

Add more texture pixel format support such as 16-bit unsigned integer #7540

Open
godotengine/godot
#106200
@Redwarx008

Description

@Redwarx008

Describe the project you are working on

A large terrain using heightmap.

Describe the problem or limitation you are having in your project

The height map used by the terrain is usually stored as a 16-bit unsigned int, but godot only supports R16_sfloat. If you want to not lose precision, you can only use R32_sfloat, which will double the size.

Describe the feature / enhancement and how it helps to overcome the problem or limitation

Add uint support for all uncompressed formats, they can be sampled, just linear filtering is not supported. But I guess, people who use them should know this.

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

If this enhancement will not be used often, can it be worked around with a few lines of script?

can not

Is there a reason why this should be core and not an add-on in the asset library?

it's render core

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions