Skip to content

Commit

Permalink
Merge pull request BabylonJS#3 from tristanReist/newRadiosityWithNewP…
Browse files Browse the repository at this point in the history
…robes

New radiosity with new probes
  • Loading branch information
ladevieq committed Jul 21, 2020
2 parents e6988ca + e21b421 commit fc05ffb
Show file tree
Hide file tree
Showing 118 changed files with 1,431 additions and 1,738 deletions.
45 changes: 19 additions & 26 deletions dist/preview release/babylon.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68529,6 +68529,19 @@ declare module BABYLON {
addDirectLightmap(mesh: Mesh, lightmap: Texture): void;
}
}
declare module BABYLON {
export class ProbeIrradianceGradient extends Probe {
private adjacentProbesForIrradiance;
private distanceBetweenProbesForGradient;
gradientSphericalHarmonics: SphericalHarmonics[];
constructor(position: Vector3, scene: Scene, resolution: number, inRoom: number);
render(meshes: Array<Mesh>, dictionary: MeshDictionary, uvEffet: Effect, bounceEffect: Effect): void;
initPromise(): void;
renderBounce(meshes: Array<Mesh>): void;
setVisibility(visible: number): void;
private _computeIrradianceGradient;
}
}
declare module BABYLON {
/**
* The probe is what is used for irradiance volume
Expand All @@ -68550,11 +68563,6 @@ declare module BABYLON {
static readonly NZ: number;
private _scene;
private _resolution;
/**
* The sphere that we choose to be visible or not,
* that keep the information of irradiance
*/
sphere: Mesh;
/**
* The list of camera that are attached to the probe,
* used to render the cube map
Expand All @@ -68569,15 +68577,13 @@ declare module BABYLON {
*/
uvEffect: Effect;
bounceEffect: Effect;
position: Vector3;
transformNode: TransformNode;
/**
* The string representing the path to the texture that is used
*/
albedoStr: string;
dictionary: MeshDictionary;
/**
* The multirendertarget that is use to redner the scene from the probe
*/
cubicMRT: MultiRenderTarget;
/**
* The spherical harmonic coefficients that represent the irradiance capture by the probe
*/
Expand Down Expand Up @@ -68623,7 +68629,7 @@ declare module BABYLON {
* @param visisble The visibility of the probe
*/
setVisibility(visisble: number): void;
protected _renderCubeTexture(subMeshes: SmartArray<SubMesh>, isMRT: boolean): void;
protected _renderCubeTexture(subMeshes: SmartArray<SubMesh>): void;
/**
* Render the 6 cameras of the probes with different effect to create the cube map we need
* @param meshes The meshes we want to render
Expand All @@ -68644,27 +68650,12 @@ declare module BABYLON {
* Return if the probe is ready to be render
*/
isProbeReady(): boolean;
private _isMRTReady;
private _isTempBounceReady;
private _CPUcomputeSHCoeff;
private _computeProbeIrradiance;
private _weightSHCoeff;
useIrradianceGradient(): void;
}
}
declare module BABYLON {
export class ProbeIrradianceGradient extends Probe {
private adjacentProbesForIrradiance;
private distanceBetweenProbesForGradient;
gradientSphericalHarmonics: SphericalHarmonics[];
constructor(position: Vector3, scene: Scene, resolution: number, inRoom: number);
render(meshes: Array<Mesh>, dictionary: MeshDictionary, uvEffet: Effect, bounceEffect: Effect): void;
initPromise(): void;
renderBounce(meshes: Array<Mesh>): void;
setVisibility(visible: number): void;
private _computeIrradianceGradient;
}
}
declare module BABYLON {
/** @hidden */
export var irradianceVolumeIrradianceLightmapPixelShader: {
Expand Down Expand Up @@ -68722,6 +68713,7 @@ declare module BABYLON {
*/
finish: boolean;
private _shTexture;
private _posProbesTexture;
/**
* Initializer of the irradiance class
* @param scene The scene of the meshes
Expand Down Expand Up @@ -68749,7 +68741,8 @@ declare module BABYLON {
private _renderIrradianceLightmap;
private _createPromise;
private _initProbesPromise;
private _isRawTextReady;
private _isRawTextSHCoefReady;
private _isRawTextProbePosReady;
private _areProbesReady;
private _isUVEffectReady;
private _isIrradianceLightmapEffectReady;
Expand Down
24 changes: 12 additions & 12 deletions dist/preview release/babylon.js

Large diffs are not rendered by default.

0 comments on commit fc05ffb

Please sign in to comment.