Godot: Unable to connect float to vector in shader graph

Created on 15 Jul 2018  路  4Comments  路  Source: godotengine/godot

Godot version:

f6ce73f

OS/device including version:

linux mint

Issue description:

cannot connect input float into vector input

Steps to reproduce:
Try to connect any float into vector input and you cannot establish any connection, however, you can connect it backward from right to left.

2018-07-15 16 51 29

I can drag from b to float but not from float to b

bug editor

Most helpful comment

@groud Usually the way to convert float into a vector is to use the float value as all the components of the new vector. This is how most shading languages do it and probably what reduz did as well, but it just works one way.

All 4 comments

you have to use a Vector Constructor.
image

You misunderstand the issue, no the conversion is automatic..., I can already do it, just not from left to right but from right to left.

It should not be possible I think, there is no obvious way to transform a float into a vector.

The bug is that you can connect them, while you should not.

@groud Usually the way to convert float into a vector is to use the float value as all the components of the new vector. This is how most shading languages do it and probably what reduz did as well, but it just works one way.

Was this page helpful?
0 / 5 - 0 ratings