提交 24aaa247 编写于 作者: M Mugen87

Examples: Rename default shaders in mirror/refractor

上级 366624fa
......@@ -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: {
......
......@@ -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: {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册