Fix using material VS to PS node directly within material input
This commit is contained in:
@@ -10,6 +10,10 @@ void MaterialGenerator::ProcessGroupMaterial(Box* box, Node* node, Value& value)
|
|||||||
{
|
{
|
||||||
switch (node->TypeID)
|
switch (node->TypeID)
|
||||||
{
|
{
|
||||||
|
// Material
|
||||||
|
case 1:
|
||||||
|
value = tryGetValue(box, Value::Zero);
|
||||||
|
break;
|
||||||
// World Position
|
// World Position
|
||||||
case 2:
|
case 2:
|
||||||
value = Value(VariantType::Float3, TEXT("input.WorldPosition.xyz"));
|
value = Value(VariantType::Float3, TEXT("input.WorldPosition.xyz"));
|
||||||
|
|||||||
Reference in New Issue
Block a user