Skip to content

Commit

Permalink
remove remnants of WebGLShaderPreProcessor, re-add mistakenly removed…
Browse files Browse the repository at this point in the history
… line.
  • Loading branch information
Ben Houston committed Feb 24, 2016
1 parent 7fb2830 commit 0d45254
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/renderers/webgl/WebGLProgram.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,7 @@ THREE.WebGLProgram = ( function () {

parameters.map ? '#define USE_MAP' : '',
parameters.envMap ? '#define USE_ENVMAP' : '',
parameters.envMap ? '#define ' + envMapModeDefine : '',
parameters.lightMap ? '#define USE_LIGHTMAP' : '',
parameters.aoMap ? '#define USE_AOMAP' : '',
parameters.emissiveMap ? '#define USE_EMISSIVEMAP' : '',
Expand Down Expand Up @@ -507,8 +508,6 @@ THREE.WebGLProgram = ( function () {
var vertexGlsl = prefixVertex + vertexShader;
var fragmentGlsl = prefixFragment + fragmentShader;

vertexGlsl = THREE.WebGLShaderPreProcessor.compile( vertexGlsl );
fragmentGlsl = THREE.WebGLShaderPreProcessor.compile( fragmentGlsl );
// console.log( '*VERTEX*', vertexGlsl );
// console.log( '*FRAGMENT*', fragmentGlsl );

Expand Down

0 comments on commit 0d45254

Please sign in to comment.