/// <summary> /// Initializes texture /// </summary> protected virtual void InitTextures() { texturePosition = new Rect(6f, 32f, windowPosition.width - 12f, windowPosition.height - 38f); //42f); renderTexture = new RenderTexture(512, 512, 24, RenderTextureFormat.RGB565); RenderTexture.active = renderTexture; renderTexture.Create(); textureBackGroundCamera = Util.MonoColorRectTexture(new Color(0.45f, 0.45f, 0.45f, 1)); textureSeparator = Util.MonoColorVerticalLineTexture(Color.white, (int)texturePosition.height); textureTargetPoint = Util.LoadTexture("targetPoint"); textureNoSignal = Util.LoadTexture("nosignal"); //textureBackGroundWindow = Util.MonoColorRectTexture(new Color(0.45f, 0.45f, 0.45f, 0.8f)); }
protected override void InitTextures() { base.InitTextures(); textureCentre = Util.LoadTexture("dockingcam"); textureRotationSelf = Util.LoadTexture("selfrot"); textureRotationTarget = Util.LoadTexture("targetrot"); textureLampOn = Util.LoadTexture("lampon"); textureLampOff = Util.LoadTexture("lampoff"); textureVLine = Util.MonoColorVerticalLineTexture(TargetCrossColor, (int)windowSize * windowSizeCoef); textureHLine = Util.MonoColorHorizontalLineTexture(TargetCrossColor, (int)windowSize * windowSizeCoef); textureVLineBack = Util.MonoColorVerticalLineTexture(targetCrossColorBack, (int)windowSize * windowSizeCoef); textureHLineBack = Util.MonoColorHorizontalLineTexture(targetCrossColorBack, (int)windowSize * windowSizeCoef); }