瀏覽代碼

Examples: Update JSM.

Mugen87 5 年之前
父節點
當前提交
baffa7154f
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      examples/jsm/loaders/GLTFLoader.js
  2. 1 1
      examples/jsm/shaders/GodRaysShader.js

+ 1 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -78,6 +78,7 @@ var GLTFLoader = ( function () {
 
 		this.dracoLoader = null;
 		this.ddsLoader = null;
+
 	}
 
 	GLTFLoader.prototype = Object.assign( Object.create( Loader.prototype ), {

+ 1 - 1
examples/jsm/shaders/GodRaysShader.js

@@ -162,7 +162,7 @@ var GodRaysGenerateShader = {
 
 		// Unrolling loop manually makes it work in ANGLE
 
-		"	float f = min( 1.0, max( vSunPositionScreenSpace.z / 1000.0, 0.0 ) );", // used to fade outgodrays
+		"	float f = min( 1.0, max( vSunPositionScreenSpace.z / 1000.0, 0.0 ) );", // used to fade out godrays
 
 		"	if ( 0.0 <= iters && uv.y < 1.0 ) col += texture2D( tInput, uv ).r * f;",
 		"	uv += stepv;",