Pārlūkot izejas kodu

Integration of PostProcessRenderPipeline

Deltakosh 11 gadi atpakaļ
vecāks
revīzija
63ade24603

+ 2 - 2
Babylon/PostProcess/RenderPipeline/babylon.renderEffect.js

@@ -3,7 +3,7 @@
 var BABYLON = BABYLON || {};
 
 (function () {
-	BABYLON.RenderEffect = function RenderEffect(engine, name, postProcessType, ratio, samplingMode, singleInstance) {
+	BABYLON.RenderEffect = function (engine, name, postProcessType, ratio, samplingMode, singleInstance) {
 		this._engine = engine;
 
 		this._name = name;
@@ -60,7 +60,7 @@ var BABYLON = BABYLON || {};
 	};
 
 	BABYLON.RenderEffect.prototype.attachCameras = function (cameras) {
-		var postProcess = null;
+		var postProcess;
 
 		cameras = BABYLON.Tools.MakeArray(cameras || this._cameras);
 

+ 1 - 1
Babylon/PostProcess/RenderPipeline/babylon.renderPass.js

@@ -3,7 +3,7 @@
 var BABYLON = BABYLON || {};
 
 (function () {
-	BABYLON.RenderPass = function RenderPass(scene, name, size, renderList, beforeRender, afterRender) {
+	BABYLON.RenderPass = function (scene, name, size, renderList, beforeRender, afterRender) {
 		this._name = name;
 		this._enabled = true;
 

+ 2 - 2
Babylon/PostProcess/RenderPipeline/babylon.renderPipeline.js

@@ -3,7 +3,7 @@
 var BABYLON = BABYLON || {};
 
 (function () {
-	BABYLON.RenderPipeline = function RenderPipeline(engine, name) {
+	BABYLON.RenderPipeline = function (engine, name) {
 		this._engine = engine;
 
 		this._name = name;
@@ -94,7 +94,7 @@ var BABYLON = BABYLON || {};
 			return;
 		}
 		
-		for (var renderEffectName in this._renderEffects) {
+		for (renderEffectName in this._renderEffects) {
 			this._renderEffects[renderEffectName].disable(cameras);
 		}
 		

+ 1 - 1
Babylon/PostProcess/RenderPipeline/babylon.renderPipelineManager.js

@@ -3,7 +3,7 @@
 var BABYLON = BABYLON || {};
 
 (function () {
-	BABYLON.RenderPipelineManager = function RenderPipelineManager() {
+	BABYLON.RenderPipelineManager = function () {
 		this._renderPipelines = [];
 	};
 

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 2 - 1
babylon.1.11.0-beta.js