Giter Site home page Giter Site logo

Comments (2)

Stehsaer avatar Stehsaer commented on August 13, 2024

what's more, instead of bar, using a cross may be even better. for this reason I strongly recommend adding a customizable indicator image setting.

from atmosphereautopilot.

Stehsaer avatar Stehsaer commented on August 13, 2024

public class CenterIndicator : MonoBehaviour
{
Material mat = new Material(Shader.Find("Sprites/Default"));
Vector3 startVector = new Vector3(0.494f, 0.5f, -0.001f);
Vector3 endVector = new Vector3(0.506f, 0.5f, -0.001f);
//public new bool enabled = false;
public void OnPostRender()
{
if (enabled)
{
GL.PushMatrix();
mat.SetPass(0);
mat.color = Color.red;
GL.LoadOrtho();
GL.Begin(GL.LINES);
GL.Color(Color.red);
GL.Vertex(startVector);
GL.Vertex(endVector);
GL.End();
GL.PopMatrix();
enabled = false;
}
}
}

It's here that should be modified.

from atmosphereautopilot.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.