- Home /
Do materials with same texture yet different shaders share the texture?
I'm doing render optimization for iOS but i'm new (first time game making) so unsure about this one detail.
If I have the same texture asset assigned to 2 or 3 materials with different shaders (for example a simple unlit, an alphablend, and an alphatest), will they truly share that texture? or is it going to now load that texture 3 times?
Answer by DaveA · Apr 10, 2012 at 06:10 AM
I would think it's one place in memory and the various shaders would share it
has anyone verified that is is the case? Specifically, has anyone tested this hypothesis on a mobile device, iOS and/or Android? The ability to have a single texture loaded only once for multiple shaders that reference it would be most beneficial if this is in fact definitely the manner in which Unity handles such a case.
Your answer
Follow this Question
Related Questions
Textures not showing up 0 Answers
Shader with two textures separated by an alpha channel? 1 Answer
Shaders: 2 textures down to 1 - different Tiliing 1 Answer
Mesh Clipping / Cross Sections 1 Answer
Boat wake/foam 0 Answers