Jump to content

Material Editor not displaying textures


SpiderPig
 Share

Go to solution Solved by Josh,

Recommended Posts

Honestly I'm not sure if this is a bug or something I've done.  Extract this into the main project directory so it can find the textures and shader family and then load it with the editor.  There are no texture slots in the material editor available.  I think it has to do with the shaderfamily because if it's using the default pbr.fam it loads the slots fine.  :huh:

Foliage.zip

Link to comment
Share on other sites

  • Solution

Texture slots need to be defined in the shader family file:

{
	"shaderfamily":
	{
		"textures":
		[
			"Diffuse",
			"Normal",
			"Metal/Rough",
			"Displacement",
			"Emission",
			"Occlusion"
		],
		"root":"Shaders/PBR.fam",
		"static":
		{
			"float":
			{
				"opaque":
				{
					"default":
					{
						"base":
						{
						},
						"depthPass":
						{
						}
					}
				}
			}
		}
	}
}

I took a look at maybe inheriting the texture slots from the root file, but that would overwrite any texture slots in the derived file, and I think the current behavior is best.

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...