You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Add basic support to evaluate operator value in shader language
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user