コード例 #1
0
 public void SetAlpha(int layerIndex, float value)
 {
     if (_alpha [layerIndex] != value)
     {
         _preset             = TUNNEL_PRESET.Custom;
         _alpha [layerIndex] = value;
         UpdateMaterialProperties();
     }
 }
コード例 #2
0
 public void SetRotationSpeed(int layerIndex, float value)
 {
     if (_rotationSpeed [layerIndex] != value)
     {
         _preset = TUNNEL_PRESET.Custom;
         _rotationSpeed [layerIndex] = value;
         UpdateMaterialProperties();
     }
 }
コード例 #3
0
 public void SetExposure(int layerIndex, float value)
 {
     if (_exposure [layerIndex] != value)
     {
         _preset = TUNNEL_PRESET.Custom;
         _exposure [layerIndex] = value;
         UpdateMaterialProperties();
     }
 }
コード例 #4
0
 public void SetTexture(int layerIndex, Texture2D tex)
 {
     if (tex != _layerTextures [layerIndex])
     {
         _preset = TUNNEL_PRESET.Custom;
         _layerTextures [layerIndex] = tex;
         UpdateMaterialProperties();
     }
 }