UNPKG

@polygonjs/polygonjs

Version:

node-based WebGL 3D engine https://polygonjs.com

32 lines (31 loc) 746 B
"use strict"; import { Color } from "three"; import { Vector3 } from "three"; export const DEFAULT_OCEAN_PARAMS = { pixelRatio: 1, clipBias: 0, // if clipBias is 0.03 like in BaseReflector, the bottom of the reflection appears cut out active: true, tblur: false, blur: 0, verticalBlurMult: 0, tblur2: false, blur2: 0, verticalBlur2Mult: 0 }; export const DEFAULT_PARAMS = { direction: new Vector3(0, 1, 0), sunDirection: new Vector3(1, 1, 1), sunColor: new Color(1, 1, 1), wavesHeight: 1, waterColor: new Color(7695), reflectionColor: new Color(16777215), reflectionFresnel: 1, distortionScale: 1, timeScale: 1, size: 10, renderReflection: true, normalBias: 1e-3, multisamples: 1, useFog: false };