瀏覽代碼

Examples: Rename default shaders in mirror/refractor

Mugen87 7 年之前
父節點
當前提交
24aaa24751
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      examples/js/objects/Mirror.js
  2. 2 2
      examples/js/objects/Refractor.js

+ 2 - 2
examples/js/objects/Mirror.js

@@ -16,7 +16,7 @@ THREE.Mirror = function ( width, height, options ) {
 	var textureWidth = options.textureWidth || 512;
 	var textureHeight = options.textureHeight || 512;
 	var clipBias = options.clipBias || 0;
-	var shader = options.shader || THREE.DefaultMirrorShader;
+	var shader = options.shader || THREE.Mirror.MirrorShader;
 	var recursion = options.recursion !== undefined ? options.recursion : 0;
 
 	//
@@ -195,7 +195,7 @@ THREE.Mirror = function ( width, height, options ) {
 THREE.Mirror.prototype = Object.create( THREE.Mesh.prototype );
 THREE.Mirror.prototype.constructor = THREE.Mirror;
 
-THREE.DefaultMirrorShader = {
+THREE.Mirror.MirrorShader = {
 
 	uniforms: {
 

+ 2 - 2
examples/js/objects/Refractor.js

@@ -17,7 +17,7 @@ THREE.Refractor = function ( width, height, options ) {
 	var textureWidth = options.textureWidth || 512;
 	var textureHeight = options.textureHeight || 512;
 	var clipBias = options.clipBias || 0;
-	var shader = options.shader || THREE.DefaultRefractionShader;
+	var shader = options.shader || THREE.Refractor.RefractorShader;
 
 	//
 
@@ -258,7 +258,7 @@ THREE.Refractor = function ( width, height, options ) {
 THREE.Refractor.prototype = Object.create( THREE.Mesh.prototype );
 THREE.Refractor.prototype.constructor = THREE.Refractor;
 
-THREE.DefaultRefractionShader = {
+THREE.Refractor.RefractorShader = {
 
 	uniforms: {