Browse Source

Examples: Fix invalid usage of mapTexelToLinear().

Mugen87 5 years ago
parent
commit
217666132c
1 changed files with 1 additions and 7 deletions
  1. 1 7
      examples/webgl_postprocessing_unreal_bloom_selective.html

+ 1 - 7
examples/webgl_postprocessing_unreal_bloom_selective.html

@@ -33,15 +33,9 @@
 
 			varying vec2 vUv;
 
-			vec4 getTexture( sampler2D texelToLinearTexture ) {
-
-				return mapTexelToLinear( texture2D( texelToLinearTexture , vUv ) );
-
-			}
-
 			void main() {
 
-				gl_FragColor = ( getTexture( baseTexture ) + vec4( 1.0 ) * getTexture( bloomTexture ) );
+				gl_FragColor = ( texture2D( baseTexture, vUv ) + vec4( 1.0 ) * texture2D( bloomTexture, vUv ) );
 
 			}