Ejemplo n.º 1
0
    protected override void Start()
    {
        ppmTexture = new PPMTexture();
        ppmTexture.Init(200, 100);

        for (int j = 0; j < ppmTexture.Height; ++j)
        {
            for (int i = 0; i < ppmTexture.Width; ++i)
            {
                float r = (float)i / ppmTexture.Width;
                float g = (float)j / ppmTexture.Height;
                float b = 0.2f;
                ppmTexture.WriteAPixel(r, g, b);
            }
        }

        ppmTexture.Complete();
    }
Ejemplo n.º 2
0
    protected virtual void Awake()
    {
        RTMath.ThreadInitRnd();

        ppmTexture = new PPMTexture();
    }