Does anyone know why the BubblesTexture
parameter would not be found when the effect is loaded? The Texture
parameter is found ok:
Texture2D Texture;
sampler2D TextureSampler = sampler_state
{
Texture = <Texture>;
AddressU = Wrap;
AddressV = Wrap;
MipFilter = Linear;
MinFilter = Linear;
MagFilter = Linear;
};
Texture2D BubblesTexture;
sampler2D BubblesTextureSampler = sampler_state
{
Texture = <BubblesTexture>;
AddressU = Wrap;
AddressV = Wrap;
MipFilter = Linear;
MinFilter = Linear;
MagFilter = Linear;
};
(Note that I have since fixed the issue where effect.CurrentTechnique
is null
).