Normand Briere
2019-08-22 6a823ffbfcda4c843f46e02e83c869d5bc323e25
Parallax presets
2 files modified
3 files added
44 ■■■■■ changed files
CameraPane.java 2 ●●● patch | view | raw | blame | history
ObjEditor.java 42 ●●●●● patch | view | raw | blame | history
icons/shadericons/parallax0.png patch | view | raw | blame | history
icons/shadericons/parallax1.png patch | view | raw | blame | history
icons/shadericons/parallax2.png patch | view | raw | blame | history
CameraPane.java
....@@ -12999,7 +12999,7 @@
1299912999 "POW temp.a, temp.a, params6.w;" + // punch through
1300013000
1300113001 "ADD texSamp, temp, texSamp;" +
13002
- "MUL temp.xyz, half, texSamp;" +
13002
+ "MUL texSamp.xyz, half, texSamp;" +
1300313003
1300413004 "MOV alpha, texSamp.aaaa;" +
1300513005
ObjEditor.java
....@@ -2437,6 +2437,48 @@
24372437 });
24382438 presetpanel.add(shadowShader);
24392439
2440
+ cLabel para0 = GetLabel("icons/shadericons/parallax0.png", !Globals.NIMBUSLAF);
2441
+ para0.setToolTipText("No parallax");
2442
+ para0.addMouseListener(new MouseAdapter()
2443
+ {
2444
+ public void mouseClicked(MouseEvent e)
2445
+ {
2446
+ parallaxField.setFloat(0.25);
2447
+
2448
+ materialtouched = true;
2449
+ applySelf();
2450
+ }
2451
+ });
2452
+ presetpanel.add(para0);
2453
+
2454
+ cLabel para1 = GetLabel("icons/shadericons/parallax1.png", !Globals.NIMBUSLAF);
2455
+ para1.setToolTipText("With parallax");
2456
+ para1.addMouseListener(new MouseAdapter()
2457
+ {
2458
+ public void mouseClicked(MouseEvent e)
2459
+ {
2460
+ parallaxField.setFloat(0.255);
2461
+
2462
+ materialtouched = true;
2463
+ applySelf();
2464
+ }
2465
+ });
2466
+ presetpanel.add(para1);
2467
+
2468
+ cLabel para2 = GetLabel("icons/shadericons/parallax2.png", !Globals.NIMBUSLAF);
2469
+ para2.setToolTipText("Reset parallax");
2470
+ para2.addMouseListener(new MouseAdapter()
2471
+ {
2472
+ public void mouseClicked(MouseEvent e)
2473
+ {
2474
+ parallaxField.setFloat(0.265);
2475
+
2476
+ materialtouched = true;
2477
+ applySelf();
2478
+ }
2479
+ });
2480
+ presetpanel.add(para2);
2481
+
24402482 cGridBag panel = new cGridBag().setVertical(true);
24412483
24422484 presetpanel.preferredWidth = 1;
icons/shadericons/parallax0.png
Binary files differ
icons/shadericons/parallax1.png
Binary files differ
icons/shadericons/parallax2.png
Binary files differ