Skip to content

Commit 067b4da

Browse files
committed
Fixed tonemapping example.
1 parent 361cf92 commit 067b4da

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

examples/webgl_tonemapping.html

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,7 @@
7676
Cineon: THREE.CineonToneMapping
7777
};
7878

79-
<<<<<<< HEAD
8079
var camera, scene, renderer, group;
81-
=======
82-
var camera, scene, renderer, controls, mesh;
83-
>>>>>>> dev
8480
var composer;
8581
var standardMaterial, floorMaterial;
8682

@@ -109,54 +105,39 @@
109105
} );
110106

111107
var textureLoader = new THREE.TextureLoader();
112-
<<<<<<< HEAD
113108
textureLoader.load( "textures/brick_diffuse.jpg", function ( map ) {
114109

115-
=======
116-
117-
textureLoader.load( "textures/brick_diffuse.jpg", function( map ) {
118-
>>>>>>> dev
119110
map.wrapS = THREE.RepeatWrapping;
120111
map.wrapT = THREE.RepeatWrapping;
121112
map.encoding = THREE.sRGBEncoding;
122113
map.anisotropy = 4;
123114
map.repeat.set( 9, 0.5 );
124115
standardMaterial.map = map;
125116
standardMaterial.needsUpdate = true;
126-
<<<<<<< HEAD
127-
128-
} );
129-
textureLoader.load( "textures/brick_bump.jpg", function ( map ) {
130117

131-
=======
132118
} );
133119

134-
textureLoader.load( "textures/brick_bump.jpg", function( map ) {
135-
>>>>>>> dev
120+
textureLoader.load( "textures/brick_bump.jpg", function ( map ) {
121+
136122
map.wrapS = THREE.RepeatWrapping;
137123
map.wrapT = THREE.RepeatWrapping;
138124
map.anisotropy = 4;
139125
map.repeat.set( 9, 0.5 );
140126
standardMaterial.bumpMap = map;
141127
standardMaterial.needsUpdate = true;
142-
<<<<<<< HEAD
143128

144-
} );
145-
textureLoader.load( "textures/brick_roughness.jpg", function ( map ) {
146-
147-
=======
148129
} );
149130

150-
textureLoader.load( "textures/brick_roughness.jpg", function( map ) {
151-
>>>>>>> dev
131+
textureLoader.load( "textures/brick_roughness.jpg", function ( map ) {
132+
152133
map.wrapS = THREE.RepeatWrapping;
153134
map.wrapT = THREE.RepeatWrapping;
154135
map.anisotropy = 4;
155136
map.repeat.set( 9, 0.5 );
156137
standardMaterial.roughnessMap = map;
157138
standardMaterial.needsUpdate = true;
158139

159-
} );
140+
} );
160141

161142
var geometry = new THREE.TorusKnotBufferGeometry( 18, 8, 150, 20 );
162143
mesh = new THREE.Mesh( geometry, standardMaterial );

0 commit comments

Comments
 (0)