Ejemplo n.º 1
0
 private void SetTexture(string boolName, string texName, Dx11.ShaderResourceView data)
 {
     if (data == null)
     {
         SetBoolean(boolName, false);
     }
     else
     {
         SetBoolean(boolName, true);
         SetTexture(texName, data);
     }
 }
Ejemplo n.º 2
0
 public void SetTexture(string matName, Dx11.ShaderResourceView tex)
 {
     textures.Add(tex);
     texIndex.Add(matName, textures.Count - 1);
 }
Ejemplo n.º 3
0
 private void SetTexture(string name, Dx11.ShaderResourceView texture)
 {
     effect.GetVariableByName(name + "Texture").AsResource().SetResource(texture);
 }