Skip to content

Commit 091d903

Browse files
committed
update presets
1 parent 34744b8 commit 091d903

File tree

1 file changed

+269
-17
lines changed

1 file changed

+269
-17
lines changed

packages/shadergradient-v2/src/presets.ts

+269-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,6 @@
11
import { animateT, EnvironmentPresetT, LightTypeT, typeT } from './types'
22

33
export const presets = {
4-
base: {
5-
title: 'Base',
6-
color: 'white',
7-
props: {
8-
positionX: 0,
9-
positionY: 0,
10-
positionZ: 0,
11-
rotationX: 0,
12-
rotationY: 0,
13-
rotationZ: 0,
14-
uAmplitude: 2,
15-
16-
color1: '#ff5005',
17-
color2: '#dbba95',
18-
color3: '#d0bce1',
19-
},
20-
},
214
halo: {
225
title: 'Halo',
236
color: 'white',
@@ -201,6 +184,275 @@ export const presets = {
201184
wireframe: false,
202185
},
203186
},
187+
nightyNight: {
188+
title: 'Nighty night',
189+
color: 'white',
190+
props: {
191+
range: 'enabled',
192+
rangeStart: 0,
193+
rangeEnd: 40,
194+
frameRate: 10,
195+
destination: 'onCanvas',
196+
format: 'gif',
197+
animate: 'on',
198+
axesHelper: 'off',
199+
brightness: 1,
200+
cAzimuthAngle: 180,
201+
cDistance: 2.8,
202+
cPolarAngle: 80,
203+
cameraZoom: 9.1,
204+
color1: '#606080',
205+
color2: '#8d7dca',
206+
color3: '#212121',
207+
embedMode: 'off',
208+
envPreset: 'city',
209+
gizmoHelper: 'hide',
210+
grain: 'on',
211+
lightType: '3d',
212+
pixelDensity: 1,
213+
fov: 45,
214+
positionX: 0,
215+
positionY: 0,
216+
positionZ: 0,
217+
reflection: 0.1,
218+
rotationX: 50,
219+
rotationY: 0,
220+
rotationZ: -60,
221+
shader: 'defaults',
222+
type: 'waterPlane',
223+
uAmplitude: 0,
224+
uDensity: 1.5,
225+
uFrequency: 0,
226+
uSpeed: 0.3,
227+
uStrength: 1.5,
228+
uTime: 8,
229+
wireframe: false,
230+
},
231+
},
232+
violaOrientalis: {
233+
title: 'Viola orientalis',
234+
color: 'white',
235+
props: {
236+
range: 'enabled',
237+
rangeStart: 0,
238+
rangeEnd: 40,
239+
frameRate: 10,
240+
destination: 'onCanvas',
241+
format: 'gif',
242+
animate: 'on',
243+
axesHelper: 'on',
244+
brightness: 1.1,
245+
cAzimuthAngle: 0,
246+
cDistance: 7.1,
247+
cPolarAngle: 140,
248+
cameraZoom: 17.3,
249+
color1: '#ffffff',
250+
color2: '#ffbb00',
251+
color3: '#0700ff',
252+
embedMode: 'off',
253+
envPreset: 'city',
254+
grain: 'off',
255+
lightType: '3d',
256+
pixelDensity: 1,
257+
fov: 45,
258+
positionX: 0,
259+
positionY: 0,
260+
positionZ: 0,
261+
reflection: 0.1,
262+
rotationX: 0,
263+
rotationY: 0,
264+
rotationZ: 0,
265+
shader: 'defaults',
266+
type: 'sphere',
267+
uAmplitude: 1.4,
268+
uDensity: 1.1,
269+
uSpeed: 0.1,
270+
uStrength: 1,
271+
uTime: 0,
272+
uFrequency: 5.5,
273+
wireframe: false,
274+
},
275+
},
276+
universe: {
277+
title: 'Universe',
278+
color: 'white',
279+
props: {
280+
range: 'enabled',
281+
rangeStart: 0,
282+
rangeEnd: 40,
283+
frameRate: 10,
284+
destination: 'onCanvas',
285+
format: 'gif',
286+
animate: 'on',
287+
axesHelper: 'on',
288+
brightness: 1.1,
289+
cAzimuthAngle: 180,
290+
cDistance: 3.9,
291+
cPolarAngle: 115,
292+
cameraZoom: 1,
293+
color1: '#5606ff',
294+
color2: '#fe8989',
295+
color3: '#000000',
296+
embedMode: 'off',
297+
envPreset: 'city',
298+
grain: 'off',
299+
lightType: '3d',
300+
pixelDensity: 1,
301+
fov: 45,
302+
positionX: -0.5,
303+
positionY: 0.1,
304+
positionZ: 0,
305+
reflection: 0.1,
306+
rotationX: 0,
307+
rotationY: 0,
308+
rotationZ: 235,
309+
shader: 'defaults',
310+
type: 'waterPlane',
311+
uAmplitude: 0,
312+
uDensity: 1.1,
313+
uSpeed: 0.1,
314+
uStrength: 2.4,
315+
uTime: 0.2,
316+
uFrequency: 5.5,
317+
wireframe: false,
318+
},
319+
},
320+
sunset: {
321+
title: 'Sunset',
322+
color: 'white',
323+
props: {
324+
range: 'enabled',
325+
rangeStart: 0,
326+
rangeEnd: 40,
327+
frameRate: 10,
328+
destination: 'onCanvas',
329+
format: 'gif',
330+
animate: 'on',
331+
axesHelper: 'on',
332+
bgColor1: '#000000',
333+
bgColor2: '#000000',
334+
brightness: 1.5,
335+
cAzimuthAngle: 60,
336+
cDistance: 7.1,
337+
cPolarAngle: 90,
338+
cameraZoom: 15.3,
339+
color1: '#ff7a33',
340+
color2: '#33a0ff',
341+
color3: '#ffc53d',
342+
embedMode: 'off',
343+
envPreset: 'dawn',
344+
grain: 'off',
345+
lightType: '3d',
346+
pixelDensity: 1,
347+
fov: 45,
348+
positionX: 0,
349+
positionY: -0.15,
350+
positionZ: 0,
351+
reflection: 0.1,
352+
rotationX: 0,
353+
rotationY: 0,
354+
rotationZ: 0,
355+
shader: 'defaults',
356+
type: 'sphere',
357+
uAmplitude: 1.4,
358+
uDensity: 1.1,
359+
uSpeed: 0.1,
360+
uStrength: 0.4,
361+
uTime: 0,
362+
uFrequency: 5.5,
363+
wireframe: false,
364+
},
365+
},
366+
mandarin: {
367+
title: 'Mandarin',
368+
color: 'white',
369+
props: {
370+
range: 'enabled',
371+
rangeStart: 0,
372+
rangeEnd: 40,
373+
frameRate: 10,
374+
destination: 'onCanvas',
375+
format: 'gif',
376+
animate: 'on',
377+
axesHelper: 'on',
378+
bgColor1: '#000000',
379+
bgColor2: '#000000',
380+
brightness: 1.2,
381+
cAzimuthAngle: 180,
382+
cDistance: 2.4,
383+
cPolarAngle: 95,
384+
cameraZoom: 1,
385+
color1: '#ff6a1a',
386+
color2: '#c73c00',
387+
color3: '#FD4912',
388+
embedMode: 'off',
389+
envPreset: 'city',
390+
grain: 'off',
391+
lightType: '3d',
392+
pixelDensity: 1,
393+
fov: 45,
394+
positionX: 0,
395+
positionY: -2.1,
396+
positionZ: 0,
397+
reflection: 0.1,
398+
rotationX: 0,
399+
rotationY: 0,
400+
rotationZ: 225,
401+
shader: 'defaults',
402+
type: 'waterPlane',
403+
uAmplitude: 0,
404+
uDensity: 1.8,
405+
uSpeed: 0.2,
406+
uStrength: 3,
407+
uTime: 0.2,
408+
uFrequency: 5.5,
409+
wireframe: false,
410+
},
411+
},
412+
cottonCandy: {
413+
title: 'Cotton Candy',
414+
color: 'white',
415+
props: {
416+
range: 'enabled',
417+
rangeStart: 0,
418+
rangeEnd: 40,
419+
frameRate: 10,
420+
destination: 'onCanvas',
421+
format: 'gif',
422+
animate: 'on',
423+
axesHelper: 'off',
424+
brightness: 1.2,
425+
cAzimuthAngle: 180,
426+
cDistance: 2.9,
427+
cPolarAngle: 120,
428+
cameraZoom: 1,
429+
color1: '#ebedff',
430+
color2: '#f3f2f8',
431+
color3: '#dbf8ff',
432+
embedMode: 'off',
433+
envPreset: 'city',
434+
grain: 'off',
435+
lightType: '3d',
436+
pixelDensity: 1,
437+
fov: 45,
438+
positionX: 0,
439+
positionY: 1.8,
440+
positionZ: 0,
441+
reflection: 0.1,
442+
rotationX: 0,
443+
rotationY: 0,
444+
rotationZ: -90,
445+
shader: 'defaults',
446+
type: 'waterPlane',
447+
uAmplitude: 0,
448+
uDensity: 1,
449+
uSpeed: 0.3,
450+
uStrength: 3,
451+
uTime: 0.2,
452+
uFrequency: 5.5,
453+
wireframe: false,
454+
},
455+
},
204456
}
205457

206458
export const initialActivePreset = 0

0 commit comments

Comments
 (0)