Skip to content

Commit

Permalink
Nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
sebavan committed Aug 3, 2021
1 parent 9996626 commit cbde8c0
Show file tree
Hide file tree
Showing 21 changed files with 364 additions and 188 deletions.
2 changes: 1 addition & 1 deletion dist/preview release/babylon.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/preview release/babylon.max.js
Original file line number Diff line number Diff line change
Expand Up @@ -34240,6 +34240,7 @@ var RayHelper = /** @class */ (function () {
}
};
RayHelper.prototype._render = function () {
var _a;
var ray = this.ray;
if (!ray) {
return;
Expand All @@ -34251,6 +34252,7 @@ var RayHelper = /** @class */ (function () {
point.addInPlace(ray.origin);
this._renderPoints[0].copyFrom(ray.origin);
_Meshes_mesh__WEBPACK_IMPORTED_MODULE_1__["Mesh"].CreateLines("ray", this._renderPoints, this._scene, true, this._renderLine);
(_a = this._renderLine) === null || _a === void 0 ? void 0 : _a.refreshBoundingInfo();
};
/**
* Attach a ray helper to a mesh so that we can easily see its orientation for instance or information like its normals.
Expand Down
2 changes: 1 addition & 1 deletion dist/preview release/babylon.max.js.map

Large diffs are not rendered by default.

62 changes: 22 additions & 40 deletions dist/preview release/documentation.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5586,11 +5586,12 @@ declare module BABYLON {
* @param level defines the LOD level of the texture to read (in case of Mip Maps)
* @param buffer defines a user defined buffer to fill with data (can be null)
* @param flushRenderer true to flush the renderer from the pending commands before reading the pixels
* @param noDataConversion false to convert the data to Uint8Array (if texture type is UNSIGNED_BYTE) or to Float32Array (if texture type is anything but UNSIGNED_BYTE). If true, the type of the generated buffer (if buffer==null) will depend on the type of the texture
* @returns The Array buffer promise containing the pixels data.
*/
readPixels(faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean): Nullable<Promise<ArrayBufferView>>;
readPixels(faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean, noDataConversion?: boolean): Nullable<Promise<ArrayBufferView>>;
/** @hidden */
_readPixelsSync(faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean): Nullable<ArrayBufferView>;
_readPixelsSync(faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean, noDataConversion?: boolean): Nullable<ArrayBufferView>;
/** @hidden */
get _lodTextureHigh(): Nullable<BaseTexture>;
/** @hidden */
Expand Down Expand Up @@ -41516,10 +41517,19 @@ declare module BABYLON {
declare module BABYLON {
interface ThinEngine {
/** @hidden */
_readTexturePixels(texture: InternalTexture, width: number, height: number, faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean): Promise<ArrayBufferView>;
_readTexturePixels(texture: InternalTexture, width: number, height: number, faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean, noDataConversion?: boolean): Promise<ArrayBufferView>;
/** @hidden */
_readTexturePixelsSync(texture: InternalTexture, width: number, height: number, faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean): ArrayBufferView;
_readTexturePixelsSync(texture: InternalTexture, width: number, height: number, faceIndex?: number, level?: number, buffer?: Nullable<ArrayBufferView>, flushRenderer?: boolean, noDataConversion?: boolean): ArrayBufferView;
}
/**
* Allocate a typed array depending on a texture type. Optionally can copy existing data in the buffer.
* @param type type of the texture
* @param sizeOrDstBuffer size of the array OR an existing buffer that will be used as the destination of the copy (if copyBuffer is provided)
* @param sizeInBytes true if the size of the array is given in bytes, false if it is the number of elements of the array
* @param copyBuffer if provided, buffer to copy into the destination buffer (either a newly allocated buffer if sizeOrDstBuffer is a number or use sizeOrDstBuffer as the destination buffer otherwise)
* @returns the allocated buffer or sizeOrDstBuffer if the latter is an ArrayBuffer
*/
export function allocateAndCopyTypedBuffer(type: number, sizeOrDstBuffer: number | ArrayBuffer, sizeInBytes?: boolean, copyBuffer?: ArrayBuffer): ArrayBufferView;
}
declare module BABYLON {
/**
Expand Down Expand Up @@ -60968,7 +60978,7 @@ declare module BABYLON {
createBuffer(viewOrSize: ArrayBufferView | number, flags: GPUBufferUsageFlags): DataBuffer;
setSubData(dataBuffer: WebGPUDataBuffer, dstByteOffset: number, src: ArrayBufferView, srcByteOffset?: number, byteLength?: number): void;
private _GetHalfFloatAsFloatRGBAArrayBuffer;
readDataFromBuffer(gpuBuffer: GPUBuffer, size: number, width: number, height: number, bytesPerRow: number, bytesPerRowAligned: number, floatFormat?: number, offset?: number, buffer?: Nullable<ArrayBufferView>, destroyBuffer?: boolean): Promise<ArrayBufferView>;
readDataFromBuffer(gpuBuffer: GPUBuffer, size: number, width: number, height: number, bytesPerRow: number, bytesPerRowAligned: number, type?: number, offset?: number, buffer?: Nullable<ArrayBufferView>, destroyBuffer?: boolean, noDataConversion?: boolean): Promise<ArrayBufferView>;
releaseBuffer(buffer: DataBuffer | GPUBuffer): boolean;
destroyDeferredBuffers(): void;
}
Expand Down Expand Up @@ -61105,7 +61115,7 @@ declare module BABYLON {
createMSAATexture(texture: InternalTexture, samples: number): void;
updateCubeTextures(imageBitmaps: ImageBitmap[] | Uint8Array[], gpuTexture: GPUTexture, width: number, height: number, format: GPUTextureFormat, invertY?: boolean, premultiplyAlpha?: boolean, offsetX?: number, offsetY?: number, commandEncoder?: GPUCommandEncoder): void;
updateTexture(imageBitmap: ImageBitmap | Uint8Array | HTMLCanvasElement | OffscreenCanvas, texture: GPUTexture | InternalTexture, width: number, height: number, layers: number, format: GPUTextureFormat, faceIndex?: number, mipLevel?: number, invertY?: boolean, premultiplyAlpha?: boolean, offsetX?: number, offsetY?: number, commandEncoder?: GPUCommandEncoder): void;
readPixels(texture: GPUTexture, x: number, y: number, width: number, height: number, format: GPUTextureFormat, faceIndex?: number, mipLevel?: number, buffer?: Nullable<ArrayBufferView>): Promise<ArrayBufferView>;
readPixels(texture: GPUTexture, x: number, y: number, width: number, height: number, format: GPUTextureFormat, faceIndex?: number, mipLevel?: number, buffer?: Nullable<ArrayBufferView>, noDataConversion?: boolean): Promise<ArrayBufferView>;
releaseTexture(texture: InternalTexture | GPUTexture): void;
destroyDeferredTextures(): void;
}
Expand Down Expand Up @@ -68965,6 +68975,10 @@ declare module BABYLON {
* renders in the main frame buffer of the canvas.
*/
renderOnlyInRenderTargetTextures: boolean;
/**
* Define if the layer is enabled (ie. should be displayed). Default: true
*/
isEnabled: boolean;
private _scene;
private _vertexBuffers;
private _indexBuffer;
Expand Down Expand Up @@ -84379,40 +84393,6 @@ declare module BABYLON {
}
}
declare module BABYLON {
/**
* Defines what data is needed to graph a point on the performance graph.
*/
export interface IPerfPoint {
/**
* The timestamp of the point.
*/
timestamp: number;
/**
* The value of the point.
*/
value: number;
}
/**
* Defines the shape of a dataset that our graphing service uses for drawing purposes.
*/
export interface IPerfDataset {
/**
* The color of the line to be drawn.
*/
color?: string;
/**
* The id of the dataset.
*/
id: string;
/**
* The data to be processed by the performance graph.
*/
data: IPerfPoint[];
/**
* Specifies if data should be hidden, falsey by default.
*/
hidden?: boolean;
}
/**
* Defines the shape of a collection of datasets that our graphing service uses for drawing purposes.
*/
Expand Down Expand Up @@ -99758,6 +99738,7 @@ declare module BABYLON {
Fragment_Custom_MicroSurface: string;
Fragment_Before_Fog: string;
Fragment_Custom_Alpha: string;
Fragment_Before_FinalColorComposition: string;
Fragment_Before_FragColor: string;
Vertex_Begin: string;
Vertex_Definitions: string;
Expand Down Expand Up @@ -99798,6 +99779,7 @@ declare module BABYLON {
Fragment_Custom_MetallicRoughness(shaderPart: string): PBRCustomMaterial;
Fragment_Custom_MicroSurface(shaderPart: string): PBRCustomMaterial;
Fragment_Before_Fog(shaderPart: string): PBRCustomMaterial;
Fragment_Before_FinalColorComposition(shaderPart: string): PBRCustomMaterial;
Fragment_Before_FragColor(shaderPart: string): PBRCustomMaterial;
Vertex_Begin(shaderPart: string): PBRCustomMaterial;
Vertex_Definitions(shaderPart: string): PBRCustomMaterial;
Expand Down
Loading

0 comments on commit cbde8c0

Please sign in to comment.