Skip to content

ShaderGraph property name is incorrect #898

@kentem-hi-matsubara

Description

@kentem-hi-matsubara

Describe the bug 💬

The constant "k_AlphaDstBlendPropId" defined on line 150 of Runtime/Scripts/UniformMaps/BaseGraphMap.cs contains the ID of the "_AlphaDstBlend" property, but the correct value is "_DstBlendAlpha."

static readonly int k_AlphaDstBlendPropId = Shader.PropertyToID("_AlphaDstBlend");

Image

This constant is used to set a property value on line 190, but because the material name is incorrect, nothing is actually set.

material.SetFloat(k_AlphaDstBlendPropId, (int)BlendMode.OneMinusSrcAlpha);//10

I was previously using Unity 6000.1.17f1, but recently updated to 6000.3.2f1 and discovered a bug caused by this error.
I contacted Unity support, and it seems that the default value was changed due to some bug fix in Unity6000.3.0f1.

I currently set it up correctly myself later, but I would like it to be fixed.

Steps to reproduce 🔢

See the BaseGraphMap class in the UnityGLTF source code.

Files to reproduce the issue ♻

No response

Editor Version 🎲

Other (Provide details below)

Render Pipeline and version

URP 17.1.0

UnityGLTF Version

2.18.7

Operating System 👩‍💻

Windows

When does this problem happen?

  • Editor Import
  • Runtime Import
  • Editor Export
  • Runtime Export

Additional Info 📜

No response

Validations 🩹

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions