Rastar Posted February 15, 2015 Share Posted February 15, 2015 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 Quote Link to comment Share on other sites More sharing options...
Josh Posted February 16, 2015 Share Posted February 16, 2015 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". Quote 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 More sharing options...
Rastar Posted February 16, 2015 Author Share Posted February 16, 2015 Mmh, OK, wasn't aware of that. Is that for performance reasons? Otherwise it would seem like an unnecesary duplication of shaders that are identical except for those texture lookup code lines. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.