|
@@ -15380,7 +15380,6 @@ function WebGLLights(extensions, capabilities) {
|
|
|
const uniforms = state.hemi[hemiLength];
|
|
|
uniforms.direction.setFromMatrixPosition(light.matrixWorld);
|
|
|
uniforms.direction.transformDirection(viewMatrix);
|
|
|
- uniforms.direction.normalize();
|
|
|
hemiLength++;
|
|
|
}
|
|
|
}
|
|
@@ -19978,7 +19977,7 @@ function WebGLRenderer(parameters = {}) {
|
|
|
if (_transmissionRenderTarget === null) {
|
|
|
_transmissionRenderTarget = new WebGLRenderTarget(1, 1, {
|
|
|
generateMipmaps: true,
|
|
|
- type: utils.convert(HalfFloatType) !== null ? HalfFloatType : UnsignedByteType,
|
|
|
+ type: extensions.has('EXT_color_buffer_half_float') ? HalfFloatType : UnsignedByteType,
|
|
|
minFilter: LinearMipmapLinearFilter,
|
|
|
samples: isWebGL2 && _antialias === true ? 4 : 0
|
|
|
});
|