Advertisement
azakhary

Untitled

Jun 7th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | None | 0 0
  1. public class Test extends ApplicationAdapter {
  2.  
  3.     private  RayHandler rayHandler;
  4.  
  5.     @Override
  6.     public void create () {
  7.         Stage test = new Stage();
  8.  
  9.         World w = new World(new Vector2(), false);
  10.  
  11.         rayHandler = new RayHandler(w);
  12.         rayHandler.setAmbientLight(1f, 1f, 1f, 1f);
  13.         rayHandler.setCulling(true);
  14.         rayHandler.setBlur(true);
  15.         rayHandler.setBlurNum(3);
  16.         rayHandler.setShadows(true);
  17.         rayHandler.setCombinedMatrix(test.getCamera().combined);
  18.     }
  19.  
  20.     @Override
  21.     public void render () {
  22.         Gdx.gl.glClearColor(0, 0, 0, 1);
  23.         Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);
  24.  
  25.         rayHandler.updateAndRender();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement