Jump to content

Materials with no textures still sample textures


Rastar
 Share

Recommended Posts

I was trying to create some test spheres for shading experiments with no textures assigned, just fixed material colors. It seems they still use textures from some other material. E.g., if I create a new empty material in MyGame and assign it the diffuse+normal shader, it will show a concrete preview in the material editor. When creating a brush sphere in the introduction scene, assigning it the material and running the game, it is rendered using the tire material

Link to comment
Share on other sites

If the shader is doing a texture lookup, whatever texture was last left in that slot will be used. This is the expected behavior. There are shaders that do not use any textures. See "default.shader".

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...