예제 #1
0
 public ShadowPass(
     ShadowPassType shadowPassType,
     Scene scene,
     Camera camera,
     DirectionalLight light,
     RenderTarget renderTarget) {
   super(scene, camera, 0);
   mShadowPassType = shadowPassType;
   mShadowRenderTarget = renderTarget;
   mShadowMapSize = renderTarget.getWidth();
   if (shadowPassType == ShadowPassType.CREATE_SHADOW_MAP) {
     mShadowMapMaterial = new ShadowMapMaterial();
     mShadowMapMaterial.setLight(light);
     mShadowMapMaterial.setCamera(camera);
     mShadowMapMaterial.setScene(scene);
     setMaterial(mShadowMapMaterial);
   }
 }
예제 #2
0
 public ShadowMapMaterial(Camera camera, RajawaliScene scene, DirectionalLight light) {
   this();
   setCamera(camera);
   setScene(scene);
   setLight(light);
 }