0

Artist needs a little Help

MA-Simon 8 years ago 0

I am an Artist, just got Shaderforge to make some basic shaders I can use for my models on the unity store. I am a little confused...


What I am trying to do is a basic blend shader, which blends 2 or more texture-sets using a blend texture (I am using a random height map for testing). The shader needs to be PBL.

Unfortunally I am confused as to were to plug in my different textures.


Attached is my (Not working) shader:


IndexOutOfRangeException: Array index is out of range.
ShaderForge.SF_Node.Deserialize (System.String row, System.Collections.Generic.List`1& linkList)
ShaderForge.SF_SelectionManager.InstantiateNodes (System.String[] serializedNodes, Vector2 posOffset, System.String undoMsg)
ShaderForge.SF_SelectionManager.PasteFromClipboard ()
ShaderForge.SF_SelectionManager.OnGUI ()
ShaderForge.SF_EditorNodeView.OnLocalGUI (Rect r)
ShaderForge.SF_Editor.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)


https://drive.google.com/open?id=0ByyaYwvYJQYwMmx4cTl5eFFLakE


Questions:

- How do I split the Metallic/Roughness texture properly? Currently gloss seems to be set to max instead of using the roughness information at all. RGB output can not be put into roughness ore gloss.

- Were do I output the height-map texture information?