Skip to content

Using derivatives in shader include file prints an error #108937

@Rytelier

Description

@Rytelier

Tested versions

Godot v4.4

System information

Godot v4.4.stable.mono - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (NVIDIA; 32.0.15.7602) - Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz (16 threads)

Issue description

Using derivative functions (dFdx, dFdy) in shader include files prints an error error(2): Built-in function 'dFdx' is not supported for the " shader type.
Shader using that include file still is usable and compiles without errors.

Steps to reproduce

Create shader include
Use derivative in a function

Minimal reproduction project (MRP)

shader-include-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions