mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Add basic support to evaluate operator value in shader language
This commit is contained in:
parent
d0dc3896ad
commit
af92fdb0ac
5 changed files with 540 additions and 121 deletions
|
@ -185,7 +185,7 @@ static String f2sp0(float p_float) {
|
|||
return num;
|
||||
}
|
||||
|
||||
static String get_constant_text(SL::DataType p_type, const Vector<SL::ConstantNode::Value> &p_values) {
|
||||
static String get_constant_text(SL::DataType p_type, const Vector<SL::Scalar> &p_values) {
|
||||
switch (p_type) {
|
||||
case SL::TYPE_BOOL:
|
||||
return p_values[0].boolean ? "true" : "false";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue