Skip to content

Vulkan: Per-vertex shading not working #43093

Description

@AlzoPalzo

Godot version:
v4.0.dev.calinou.e16729a8c

OS/device including version:
Windows 10, GTX 1070, Vulkan

Issue description:
In Godot 3.2 I used Tree models with their normals edited in blender in tandem with per vertex shading to create smoothly shaded trees. In Godot 4.0, with vulkan backend switching the shading between per vertex and per pixel has no effect on the tree models

Examples of the expected result are shown below where the trees on the left are shaded per pixel and the trees on the right are shaded per vertex.
treeShadingExample2

treeShadingExample

Steps to reproduce:
Add a directional Light or other lights to the models and in the material turn on the per vertex shading flag(3.2) or switch shading to per vertex(4.0)

Minimal reproduction project:

LowPolyTrees.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status
    Done
    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions