babylon.shadowGenerator.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. declare module BABYLON {
  2. class ShadowGenerator {
  3. private static _FILTER_NONE;
  4. private static _FILTER_VARIANCESHADOWMAP;
  5. private static _FILTER_POISSONSAMPLING;
  6. static FILTER_NONE : number;
  7. static FILTER_VARIANCESHADOWMAP : number;
  8. static FILTER_POISSONSAMPLING : number;
  9. public filter: number;
  10. public useVarianceShadowMap : boolean;
  11. public usePoissonSampling : boolean;
  12. private _light;
  13. private _scene;
  14. private _shadowMap;
  15. private _darkness;
  16. private _transparencyShadow;
  17. private _effect;
  18. private _viewMatrix;
  19. private _projectionMatrix;
  20. private _transformMatrix;
  21. private _worldViewProjection;
  22. private _cachedPosition;
  23. private _cachedDirection;
  24. private _cachedDefines;
  25. constructor(mapSize: number, light: DirectionalLight);
  26. public isReady(subMesh: SubMesh, useInstances: boolean): boolean;
  27. public getShadowMap(): RenderTargetTexture;
  28. public getLight(): DirectionalLight;
  29. public getTransformMatrix(): Matrix;
  30. public getDarkness(): number;
  31. public setDarkness(darkness: number): void;
  32. public setTransparencyShadow(hasShadow: boolean): void;
  33. public dispose(): void;
  34. }
  35. }