Accessing and Modifying Material parameters via script


Accessing and Modifying Material parameters via script

Special requirements for Scripting with the Standard Shader

You must enable the correct Keywords for your required Standard Shader variant

Keyword Feature
_NORMALMAP Normal Mapping
_ALPHATEST_ON “Cut out” Transparency Rendering Mode
_ALPHABLEND_ON “Fade” Transparency Rendering Mode
_ALPHAPREMULTIPLY_ON “Transparent” Transparency Rendering Mode
_EMISSION Emission Colour or Emission Mapping
_PARALLAXMAP Height Mapping
_DETAIL_MULX2 Secondary “Detail” Maps (Albedo & Normal Map)
_METALLICGLOSSMAP Metallic/Smoothness Mapping in Metallic Workflow
_SPECGLOSSMAP Specular/Smoothness Mapping in Specular Workflow

坚持原创技术分享,您的支持将鼓励我继续创作!
0%