|
@@ -33,8 +33,6 @@ The source has many examples and tests to explain the capacity of shaders much b
|
|
|
** Glass (added by @mifth)
|
|
** Glass (added by @mifth)
|
|
|
** Texture Bombing (added by @wezrule)
|
|
** Texture Bombing (added by @wezrule)
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
[NOTE]
|
|
[NOTE]
|
|
|
====
|
|
====
|
|
|
Official Forum: link:https://hub.jmonkeyengine.org/t/shaderblow-project/26655[https://hub.jmonkeyengine.org/forum/t/shaderblow-project/26655]
|
|
Official Forum: link:https://hub.jmonkeyengine.org/t/shaderblow-project/26655[https://hub.jmonkeyengine.org/forum/t/shaderblow-project/26655]
|
|
@@ -202,7 +200,9 @@ Features:
|
|
|
|
|
|
|
|
Software for NormalMaps? making: link:http://shadermap.com/shadermap_pro.php[http://shadermap.com/shadermap_pro.php] +
|
|
Software for NormalMaps? making: link:http://shadermap.com/shadermap_pro.php[http://shadermap.com/shadermap_pro.php] +
|
|
|
Software for CubeMaps? editing: link:https://code.google.com/archive/p/cubemapgen/downloads[https://code.google.com/archive/p/cubemapgen/downloads] +
|
|
Software for CubeMaps? editing: link:https://code.google.com/archive/p/cubemapgen/downloads[https://code.google.com/archive/p/cubemapgen/downloads] +
|
|
|
|
|
+
|
|
|
Watch following videos:
|
|
Watch following videos:
|
|
|
|
|
+
|
|
|
[cols="1",caption=]
|
|
[cols="1",caption=]
|
|
|
.YouTube
|
|
.YouTube
|
|
|
|===
|
|
|===
|
|
@@ -224,6 +224,7 @@ The Dissolve Shader uses a simple grey scale image as an animated mask to hide a
|
|
|
The shader incrementally clamps off the colour value, dark to light, and uses that for a masking texture to discard pixels.
|
|
The shader incrementally clamps off the colour value, dark to light, and uses that for a masking texture to discard pixels.
|
|
|
It is currently capped for convenience at 255 frames of animation and is only using one colour channel.
|
|
It is currently capped for convenience at 255 frames of animation and is only using one colour channel.
|
|
|
In simple terms, in starts by only discarding the darkest parts of the texture map, then the slightly lighter parts, then the slightly lighter again and again until it eventually cant get any lighter (white), at which point the proccess is complete.
|
|
In simple terms, in starts by only discarding the darkest parts of the texture map, then the slightly lighter parts, then the slightly lighter again and again until it eventually cant get any lighter (white), at which point the proccess is complete.
|
|
|
|
|
+
|
|
|
[cols="2"]
|
|
[cols="2"]
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
@@ -247,6 +248,7 @@ The test is occolating the dissolve amount between 0 and 1. It demonstrates 6 di
|
|
|
. Organic Burn (bottom right) is comprised of 2 cubes, one blue, one orange, both with the same organic dissolve, however the orange one is slightly offset ahead of the blue so it shows first (ie the dissolve amount is always slight advanced).
|
|
. Organic Burn (bottom right) is comprised of 2 cubes, one blue, one orange, both with the same organic dissolve, however the orange one is slightly offset ahead of the blue so it shows first (ie the dissolve amount is always slight advanced).
|
|
|
|
|
|
|
|
Watch following videos:
|
|
Watch following videos:
|
|
|
|
|
+
|
|
|
[cols="2"caption=]
|
|
[cols="2"caption=]
|
|
|
.YouTube
|
|
.YouTube
|
|
|
|===
|
|
|===
|
|
@@ -268,14 +270,11 @@ The shader requires 2 parameters:
|
|
|
** the first is a float value being the amount of dissolve, a value from 0-1 : 0 being no dissolve, being fully dissolved; and
|
|
** the first is a float value being the amount of dissolve, a value from 0-1 : 0 being no dissolve, being fully dissolved; and
|
|
|
** the second value is an int use as an inversion switch, 1 to invert the dissolve/discard, 0 to leave as is.
|
|
** the second value is an int use as an inversion switch, 1 to invert the dissolve/discard, 0 to leave as is.
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
[NOTE]
|
|
[NOTE]
|
|
|
====
|
|
====
|
|
|
Dissolver is based on Common/MatDefs/Lighting.j3md. So, all Common/MatDefs/Lighting.j3md features should be available on the dissolver too.
|
|
Dissolver is based on Common/MatDefs/Lighting.j3md. So, all Common/MatDefs/Lighting.j3md features should be available on the dissolver too.
|
|
|
====
|
|
====
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
|
|
|
|
|
@@ -301,7 +300,7 @@ Dissolver is based on Common/MatDefs/Lighting.j3md. So, all Common/MatDefs/Light
|
|
|
|
|
|
|
|
link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/dissolve/TestDissolve.java[TestCase]
|
|
link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/dissolve/TestDissolve.java[TestCase]
|
|
|
|
|
|
|
|
-link:https://hub.jmonkeyengine.org/t/dissolve-shader/18720/12[Forum thread]
|
|
|
|
|
|
|
+link:https://hub.jmonkeyengine.org/t/dissolve-shader/18720[Forum thread]
|
|
|
|
|
|
|
|
'''
|
|
'''
|
|
|
|
|
|
|
@@ -335,7 +334,6 @@ image:sdk/plugin/fakeparticleblow3.png[FakeParticleBlow,width="400",height=""]
|
|
|
|
|
|
|
|
a|.FakeParticleBlow Shader
|
|
a|.FakeParticleBlow Shader
|
|
|
image:sdk/plugin/hdQop4yZ-lA.jpg[youtube_hdQop4yZ-lA,width="",height="",link="https://youtu.be/hdQop4yZ-lA"]
|
|
image:sdk/plugin/hdQop4yZ-lA.jpg[youtube_hdQop4yZ-lA,width="",height="",link="https://youtu.be/hdQop4yZ-lA"]
|
|
|
-a|
|
|
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
@@ -355,7 +353,6 @@ image:sdk/plugin/fakeobject.png[fakeobject.png,width="100",height=""]
|
|
|
Remenber to set the queue bucket to transparent for the spatial.
|
|
Remenber to set the queue bucket to transparent for the spatial.
|
|
|
====
|
|
====
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
|
|
|
|
|
@@ -437,7 +434,7 @@ Features:
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
a|.Forceshield
|
|
a|.Forceshield
|
|
|
-image:sdk/plugin/uu2nbaBM9Pk.jpg[youtube_uu2nbaBM9Pk,width="",height=""link="https://youtu.be/uu2nbaBM9Pk"]
|
|
|
|
|
|
|
+image:sdk/plugin/uu2nbaBM9Pk.jpg[youtube_uu2nbaBM9Pk,width="",height="",link="https://youtu.be/uu2nbaBM9Pk"]
|
|
|
a|.Forceshield Cube
|
|
a|.Forceshield Cube
|
|
|
image:sdk/plugin/urzMiUeHsCc.png[youtube_urzMiUeHsCc,width="",height="",link="https://youtu.be/urzMiUeHsCc"]
|
|
image:sdk/plugin/urzMiUeHsCc.png[youtube_urzMiUeHsCc,width="",height="",link="https://youtu.be/urzMiUeHsCc"]
|
|
|
|
|
|
|
@@ -449,13 +446,11 @@ image:sdk/plugin/urzMiUeHsCc.png[youtube_urzMiUeHsCc,width="",height="",link="ht
|
|
|
Create a Spatial instance. Create a link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/src/com/shaderblow/forceshield/ForceShieldControl.java[ForceShieldControl] instance.
|
|
Create a Spatial instance. Create a link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/src/com/shaderblow/forceshield/ForceShieldControl.java[ForceShieldControl] instance.
|
|
|
Add the control instance to the spatial.
|
|
Add the control instance to the spatial.
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[IMPORTANT]
|
|
[IMPORTANT]
|
|
|
====
|
|
====
|
|
|
If you experience problems, try higher polygon object.
|
|
If you experience problems, try higher polygon object.
|
|
|
====
|
|
====
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
|
----
|
|
----
|
|
|
|
|
|
|
@@ -594,7 +589,6 @@ Create a material (by SDK or by code) using link:https://github.com/jMonkeyEngin
|
|
|
Remember to add a DirectionalLight if you want to use toon edge effect.
|
|
Remember to add a DirectionalLight if you want to use toon edge effect.
|
|
|
====
|
|
====
|
|
|
|
|
|
|
|
-
|
|
|
|
|
[source]
|
|
[source]
|
|
|
----
|
|
----
|
|
|
|
|
|
|
@@ -670,7 +664,7 @@ a|image:sdk/plugin/shaderblow_ssao.png[Glass shader,width="400",height=""]
|
|
|
|
|
|
|
|
link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/filter/basicssao/TestBasicSSAO.java[TestCase]
|
|
link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/filter/basicssao/TestBasicSSAO.java[TestCase]
|
|
|
|
|
|
|
|
-link:https://hub.jmonkeyengine.org/t/wip-basicssao-added-optional-smoothing/23490/40[Forum thread]
|
|
|
|
|
|
|
+link:https://hub.jmonkeyengine.org/t/wip-basicssao-added-optional-smoothing/23490[Forum thread]
|
|
|
|
|
|
|
|
'''
|
|
'''
|
|
|
|
|
|
|
@@ -690,7 +684,7 @@ image:sdk/plugin/JDTES95HnPE.jpg[youtube_JDTES95HnPE,width="",height="",link="ht
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-link:https://hub.jmonkeyengine.org/t/electricity-shaders/23436/5[Forum thread]
|
|
|
|
|
|
|
+link:https://hub.jmonkeyengine.org/t/electricity-shaders/23436[Forum thread]
|
|
|
|
|
|
|
|
'''
|
|
'''
|
|
|
|
|
|
|
@@ -700,12 +694,13 @@ link:https://hub.jmonkeyengine.org/t/electricity-shaders/23436/5[Forum thread]
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* GPU animated texture.
|
|
* GPU animated texture.
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+[cols="1"]
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
a|image:sdk/plugin/shaderblow_simplesprite_shader.png[Glass shader,width="400",height=""]
|
|
a|image:sdk/plugin/shaderblow_simplesprite_shader.png[Glass shader,width="400",height=""]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
+
|
|
|
[cols="1",caption=]
|
|
[cols="1",caption=]
|
|
|
.YouTube
|
|
.YouTube
|
|
|
|===
|
|
|===
|
|
@@ -725,14 +720,17 @@ link:https://hub.jmonkeyengine.org/t/texture-animation-shader-done/19579[Forum t
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Cool nice bubble.
|
|
* Cool nice bubble.
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+
|
|
|
|
|
+[cols="1",caption=]
|
|
|
|
|
+.YouTube
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-a|image:sdk/plugin/youtube_rkfblz1eohg[youtube_rkfblz1eohg,width="",height=""]
|
|
|
|
|
|
|
+a|.Bubble Shader
|
|
|
|
|
+image:sdk/plugin/rkFbLZ1EOhg.jpg[youtube_rkFbLZ1EOhg,width="",height="",link="https://youtu.be/rkFbLZ1EOhg"]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-link:https://hub.jmonkeyengine.org/t/bubble-shader/26169/3[Forum thread]
|
|
|
|
|
|
|
+link:https://hub.jmonkeyengine.org/t/bubble-shader/26169[Forum thread]
|
|
|
|
|
|
|
|
'''
|
|
'''
|
|
|
|
|
|
|
@@ -755,19 +753,22 @@ link:https://hub.jmonkeyengine.org/t/spritelibrary-efficient-render-of-sprites/2
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Applying random images from a texture atlas to a model by dividing up the model's UV textures into cells.
|
|
* Applying random images from a texture atlas to a model by dividing up the model's UV textures into cells.
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+
|
|
|
|
|
+[cols="1",caption=]
|
|
|
|
|
+.YouTube
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-a|image:sdk/plugin/youtube_3lbhu2c5v8o[youtube_3lbhu2c5v8o,width="",height=""]
|
|
|
|
|
|
|
+a|.GLSL Texture Bomb
|
|
|
|
|
+image:sdk/plugin/3lBhu2c5V8o.png[youtube_3lBhu2c5V8o,width="",height="",link"https://youtu.be/3lBhu2c5V8o"]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
|
|
|
|
|
=== Usage
|
|
=== Usage
|
|
|
|
|
|
|
|
-link:https://code.google.com/p/jmonkeyplatform-contributions/source/browse/trunk/shaderblowlib/ShaderBlow/test-src/com/shaderblow/test/texturebombing/TestTextureBombing.java[TestCase]
|
|
|
|
|
|
|
+link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/texturebombing/TestTextureBombing.java[TestCase]
|
|
|
|
|
|
|
|
-link:https://hub.jmonkeyengine.org/t/texture-glyph-bombing-shader/26867/2[Forum thread]
|
|
|
|
|
|
|
+link:https://hub.jmonkeyengine.org/t/texture-glyph-bombing-shader/26867[Forum thread]
|
|
|
|
|
|
|
|
'''
|
|
'''
|
|
|
|
|
|
|
@@ -777,17 +778,20 @@ link:https://hub.jmonkeyengine.org/t/texture-glyph-bombing-shader/26867/2[Forum
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Apply a mask (Binoculars) and color to emulate night vision mode.
|
|
* Apply a mask (Binoculars) and color to emulate night vision mode.
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+
|
|
|
|
|
+[cols="1",caption=]
|
|
|
|
|
+.YouTube
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-a|image:sdk/plugin/youtube_mnsjavutdps[youtube_mnsjavutdps,width="",height=""]
|
|
|
|
|
|
|
+a|.Night Vision Post Processor
|
|
|
|
|
+image:sdk/plugin/mNsjAVUTDPs.jpg[youtube_mNsjAVUTDPs,width="",height="",link="https://youtu.be/mNsjAVUTDPs"]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
|
|
|
|
|
=== Usage
|
|
=== Usage
|
|
|
|
|
|
|
|
-link:https://code.google.com/p/jmonkeyplatform-contributions/source/browse/trunk/shaderblowlib/ShaderBlow/test-src/com/shaderblow/test/filter/nightvision/TestNightVision.java[TestCase]
|
|
|
|
|
|
|
+link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/filter/nightvision/TestNightVision.java[TestCase]
|
|
|
|
|
|
|
|
link:https://hub.jmonkeyengine.org/t/night-vision-filter-available-in-shaderblow-plugin/26892[Forum thread]
|
|
link:https://hub.jmonkeyengine.org/t/night-vision-filter-available-in-shaderblow-plugin/26892[Forum thread]
|
|
|
|
|
|
|
@@ -799,17 +803,20 @@ link:https://hub.jmonkeyengine.org/t/night-vision-filter-available-in-shaderblow
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Changes the color in the scene to emulate the predator thermal vision effect
|
|
* Changes the color in the scene to emulate the predator thermal vision effect
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+
|
|
|
|
|
+[cols="1",caption=]
|
|
|
|
|
+.YouTube
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-a|image:sdk/plugin/youtube_dqbwcwvwtfq[youtube_dqbwcwvwtfq,width="",height=""]
|
|
|
|
|
|
|
+a|.Predator Thermal Vision
|
|
|
|
|
+image:sdk/plugin/DqBwCWVwTFQ[youtube_DqBwCWVwTFQ,width="",height="",link="https://youtu.be/DqBwCWVwTFQ"]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
|
|
|
|
|
=== Usage
|
|
=== Usage
|
|
|
|
|
|
|
|
-link:https://code.google.com/p/jmonkeyplatform-contributions/source/browse/trunk/shaderblowlib/ShaderBlow/test-src/com/shaderblow/test/filter/predatorvision/TestPredatorVision.java?spec=svn1097&r=1097[TestCase]
|
|
|
|
|
|
|
+link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/filter/predatorvision/TestPredatorVision.java[TestCase]
|
|
|
|
|
|
|
|
link:https://hub.jmonkeyengine.org/t/predator-thermal-vision-filter-available-in-the-shaderblow-plugin/27005[Forum thread]
|
|
link:https://hub.jmonkeyengine.org/t/predator-thermal-vision-filter-available-in-the-shaderblow-plugin/27005[Forum thread]
|
|
|
|
|
|
|
@@ -821,17 +828,20 @@ link:https://hub.jmonkeyengine.org/t/predator-thermal-vision-filter-available-in
|
|
|
Features:
|
|
Features:
|
|
|
|
|
|
|
|
* Displays a frosted glass effect over the current scene
|
|
* Displays a frosted glass effect over the current scene
|
|
|
-[cols="1", options="header"]
|
|
|
|
|
|
|
+
|
|
|
|
|
+[cols="1", caption=]
|
|
|
|
|
+.YouTube
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
-a|image:sdk/plugin/youtube_bb0jvjqvurw[youtube_bb0jvjqvurw,width="",height=""]
|
|
|
|
|
|
|
+a|.Frosted Glass effect Filter
|
|
|
|
|
+image:sdk/plugin/Bb0jVjqvURw.jpg[youtube_Bb0jVjqvURw,width="",height="",link"https://youtu.be/Bb0jVjqvURw"]
|
|
|
|
|
|
|
|
|===
|
|
|===
|
|
|
|
|
|
|
|
|
|
|
|
|
=== Usage
|
|
=== Usage
|
|
|
|
|
|
|
|
-link:https://code.google.com/p/jmonkeyplatform-contributions/source/browse/trunk/shaderblowlib/ShaderBlow/test-src/com/shaderblow/test/filter/frostedglass/TestFrostedGlass.java[TestCase]
|
|
|
|
|
|
|
+link:https://github.com/jMonkeyEngine-Contributions/shaderblowlib/blob/master/ShaderBlow/test-src/com/shaderblow/test/filter/frostedglass/TestFrostedGlass.java[TestCase]
|
|
|
|
|
|
|
|
link:https://hub.jmonkeyengine.org/t/frosted-glass-filter-available-in-the-shaderblow-plugin/27023[Forum thread]
|
|
link:https://hub.jmonkeyengine.org/t/frosted-glass-filter-available-in-the-shaderblow-plugin/27023[Forum thread]
|
|
|
|
|
|