Closed
Description
Tested versions
Reproducible in v4.3.stable.official
System information
Godot v4.3.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated Intel(R) Arc(TM) A370M Graphics (Intel Corporation; 32.0.101.6559) - 13th Gen Intel(R) Core(TM) i7-13700H (20 Threads)
Issue description
You can trick the transpiler into letting you create effectively an intermediate variable of type sampler2D
using a ternary expression which will cause an error, even though explicit sampler2D
variables are not allowed
Steps to reproduce
Use a ternary expression of two sampler2D
s in a shader, for example in texture
like:
texture(true ? my_texture : my_texture, uv);
Minimal reproduction project (MRP)
N/A
Metadata
Metadata
Assignees
Type
Projects
Status
Done