Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigFeldspar committed Jun 30, 2023
1 parent a085c78 commit 52b53d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class NodeMaterialBuildState {
this.compilationString = "#if defined(WEBGL2) || defines(WEBGPU)\r\nprecision highp sampler2DArray;\r\n#endif\r\n" + this.compilationString;

if (this.prePassCapable) {
let prePassDeclaration = "#if defined(PREPASS)\r\n"
let prePassDeclaration = "#if defined(PREPASS)\r\n";

for (const outputName in this.prePassOutput) {
prePassDeclaration = prePassDeclaration + this.prePassOutput[outputName] + "\r\n";
Expand All @@ -144,7 +144,6 @@ export class NodeMaterialBuildState {
this.compilationString = `\r\n${extension}\r\n${this.compilationString}`;
}


this._builtCompilationString = this.compilationString;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ export class MultiRenderTarget extends RenderTargetTexture {
this.onRebuildObservable.notifyObservers();
}

private _createInternalTextures(): void {
private _createInternalTextures(): void {
this._renderTarget = this._getEngine()!.createMultipleRenderTarget(this._size, this._multiRenderTargetOptions, !this._drawOnlyOnFirstAttachmentByDefault);
this._texture = this._renderTarget.texture;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/core/src/Rendering/prePassRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -626,7 +626,7 @@ export class PrePassRenderer {

/**
* Keeps the sync between the noPrePassDefaultRT and the defaultRT
* @returns
* @returns
*/
private _syncPrePassRT() {
if (this.mrtCount === 0) {
Expand Down

0 comments on commit 52b53d2

Please sign in to comment.