Skip to content

(Shader) UV max value below 1 for PlaceholderTexture2D #107810

Open
@8Erigon

Description

@8Erigon

Tested versions

  • Reproducible: v4.4.1.stable.mono.official

System information

Godot v4.4.1.stable.mono - Windows 10 (build 19045) - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1650 (NVIDIA; 32.0.15.7628) - Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz (8 threads)

Issue description

The variables UV.x and UV.y in the shaderScripting language should range from 0 to 1.
But when the node uses a PlaceholderTexture2D, UV.x & UV.y go upto 0.25 instead.
Although that max value changes proportional with the Sprite2d.Texture.Size.

Image

Steps to reproduce

  1. Create a sprite2d
  2. Choose "PlaceHolderTexture2D" as Texture
  3. Add a shader that uses UV

Minimal reproduction project (MRP)

Godot_Bug_ZIP.zip

Weird... In the new project the placeholderTexture isn't blank (maybe I overlooked it befor)
Doesn't matter, the bug is superficial anyway

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