|
@@ -1,6 +1,7 @@
|
|
|
import {
|
|
import {
|
|
|
Color,
|
|
Color,
|
|
|
FrontSide,
|
|
FrontSide,
|
|
|
|
|
+ HalfFloatType,
|
|
|
Matrix4,
|
|
Matrix4,
|
|
|
Mesh,
|
|
Mesh,
|
|
|
PerspectiveCamera,
|
|
PerspectiveCamera,
|
|
@@ -84,7 +85,7 @@ class Water extends Mesh {
|
|
|
|
|
|
|
|
const mirrorCamera = new PerspectiveCamera();
|
|
const mirrorCamera = new PerspectiveCamera();
|
|
|
|
|
|
|
|
- const renderTarget = new WebGLRenderTarget( textureWidth, textureHeight );
|
|
|
|
|
|
|
+ const renderTarget = new WebGLRenderTarget( textureWidth, textureHeight, { type: HalfFloatType } );
|
|
|
|
|
|
|
|
const mirrorShader = {
|
|
const mirrorShader = {
|
|
|
|
|
|