コード例 #1
0
ファイル: EntityRenderer.cs プロジェクト: ylyking/Elderus
    void Start()
    {
        this.materials    = new Material[] { this.blocks_opaque, this.blocks_translucent };
        this.world        = new World();
        this.renderGlobal = new RenderGlobal(Camera.main);
        this.renderGlobal.setWorldAndLoad(this.world);
        this.world.addWorldProvider(this.renderGlobal);

        this.cube = new Cube(Vector3.zero, this.block_selector);
    }
コード例 #2
0
 public WorldRenderer(Arcodia game, World world, RenderGlobal renderer)
 {
     this.Arcodia = game;
     this.WorldObj = world;
     this.RenderGlobal = renderer;
 }