|
@@ -495,6 +495,7 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters
|
|
|
'uniform mat4 viewMatrix;',
|
|
|
'uniform mat3 normalMatrix;',
|
|
|
'uniform vec3 cameraPosition;',
|
|
|
+ 'uniform bool isOrthographic;',
|
|
|
|
|
|
'#ifdef USE_INSTANCING',
|
|
|
|
|
@@ -617,6 +618,7 @@ function WebGLProgram( renderer, extensions, code, material, shader, parameters
|
|
|
|
|
|
'uniform mat4 viewMatrix;',
|
|
|
'uniform vec3 cameraPosition;',
|
|
|
+ 'uniform bool isOrthographic;',
|
|
|
|
|
|
( parameters.toneMapping !== NoToneMapping ) ? '#define TONE_MAPPING' : '',
|
|
|
( parameters.toneMapping !== NoToneMapping ) ? ShaderChunk[ 'tonemapping_pars_fragment' ] : '', // this code is required here because it is used by the toneMapping() function defined below
|