public OrthogonalTiledMapRendererWithObjects(TiledMap map) {
super(map);
this.occlusionFbo = new FrameBuffer(Format.RGBA8888, Gdx.graphics.getWidth() / 2, Gdx.graphics.getHeight() / 2, false);
this.shadowmapFbo = new FrameBuffer(Format.RGBA8888, Gdx.graphics.getWidth() / 2, 1, false);
this.shadowmapTex = shadowmapFbo.getColorBufferTexture();
this.shadowmapTex.setFilter(TextureFilter.Linear, TextureFilter.Linear);
this.shadowmapTex.setWrap(TextureWrap.Repeat, TextureWrap.Repeat);
//this.orthoCam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
//this.orthoCam.setToOrtho(Y_DOWN);
this.lights = new ArrayList<Light>();
this.mouseLight = new Light(0, 0, Color.WHITE);
}
OrthogonalTiledMapRendererWithObjects.java 文件源码
java
阅读 27
收藏 0
点赞 0
评论 0
项目:swampmachine
作者:
评论列表
文章目录