Nehon
31d271d972
Changed the way indirect lighting is toggled on or of, there was silly problems with previous commit.
9 years ago
Nehon
e438ad0928
LightProbe maps can now be re rendered in the engine and in the SDK
9 years ago
Nehon
822d327236
Image now properly save it's colorSpace when saved
9 years ago
Nehon
d92171b153
Fixed LightProbe Saving and Loading
9 years ago
Nehon
ad4634ce04
.hdr files are now loaded in sRGB color space as there is no reason it should be loaded in linear space.
9 years ago
Paul Speed
d57147e392
A small optimization. The BitmapTextPage does not
...
require custom updates so it now signifies that.
9 years ago
Paul Speed
cde35a005a
Just fixing an indent.
9 years ago
Paul Speed
31cab674b3
Removing the dodgy 'optimization' that broke some people and caused other 'makeup' changes to better support the dodginess.
...
(And I do realize I have the benefit of analyzing the aftermath, hindsight is 20/20, etc.) Included a big long comment about the right way to implement this optimization.
9 years ago
Nehon
ab981b76fc
Added a define to toggle indirect lighting on or off, depending if there is a light probe in the light list or not.
...
However, this is not ideal, as this code will trigger a recompilation of the shader on each pass, in case there is more than 1 lighting pass.
Another way could be to multiply the indirect lighting contribution by the Ambient light color in the shader, and always perform the indirect lighting code (even without light probe).
As in the second pass ambient light is forced to 0, the indirect lighting contribution would be nullified. However we'd have to force ambient light to 0 if there are no light probe.
This would also have the nice side effect of having a way to dim or boost indirect lighting with the ambient light color.
9 years ago
William Linna
c8a16c940f
Only interpolate if particles are in world space
9 years ago
William Linna
6075e4639d
Interpolate particle positions
...
NOTE: This change is not invented by me. All credit goes to methusalah.
See this thread:
http://hub.jmonkeyengine.org/t/interpolation-of-particle-spawning-point/30385/7
9 years ago
Daniel Johansson
dc0bcb5d13
Resolves #378 , adding support for detecting ARMv8 on Android.
9 years ago
David Bernard
2938acec51
opengl3: add GLSLCompat into Gui.j3md
9 years ago
Pesegato
539e49e109
Added support to Logitech F310
...
For both DirectInput and XInput mode. Also tentatively added support of alternate version of xbox360 controller.
9 years ago
Rémy Bouquet
45321fc7d5
Fixed an issue in material when having classic lights along with a LightProbe
9 years ago
Nehon
7d07a63ebf
Changes the way the fresnel term is computed in the PBR.glsllib for direct lighting, fixing some artifact when having a point light
9 years ago
Rémy Bouquet
e159c3918a
Implemented intersectBoundingBox for LightProbe
9 years ago
Julien Gouesse
ce86a3e555
Allows to choose between the forward compatible profile and the backward compatible profile in the JOGL backend
9 years ago
Brandon DeRosier
1bb3ee089a
Change duplicated docstring in FlyByCamera.unregisterInput
9 years ago
Dokthar
071ad5c618
light : fixed pointLight v. bounding sphere unit test
9 years ago
Dokthar
4be09e3505
light : replaced duplicated code by methods from Intersection
9 years ago
Dokthar
505aa23048
light : added unit tests for the new support of bounding spheres intersections (for lightFilter)
9 years ago
Dokthar
cfdb9a8759
Lights (see #362 ) : added light v. sphere intersection, and implementations of intersectsSphere(), second attempt
9 years ago
Daniel Johansson
5da9fa6bc2
Changed the default app title in AppSettings to use the full name string from JmeVersion. This way no more manual changing of this will be needed for future versions. This also closes #320 which highlighted this issue. Thanks @8Keep .
9 years ago
Kirill Vainer
e4f3c06b1d
ListMap: create unit test
9 years ago
Kirill Vainer
01227d31b0
Lighting: fix colorramp feature
9 years ago
Kirill Vainer
4a37a8f851
FXAA: quality regression fix
...
FXAA wants input texture to use bilinear filtering
so it can be smoothed further, so allow filters to
request bilinear filtering.
9 years ago
Kirill Vainer
4fef16ee9f
GLRenderer: fix incorrect gl3 check
...
Should check against caps; since gl3 is always
set on desktop regardless if GL3 is available or not.
Also add FBO blit support if we have GL3.
9 years ago
Kirill Vainer
cba39fa0ff
GLRenderer: make the class final
9 years ago
Kirill Vainer
aa54947ff3
GLRenderer: cleanup to shadow compare mode
...
Store compare mode in LastTextureState instead of on Texture object
9 years ago
Kirill Vainer
efe600c38d
GLRenderer: put max anisotropy into limits map
9 years ago
Kirill Vainer
d269839efb
FastMath: faster nearestPowerOfTwo and unit test
9 years ago
Julien Gouesse
9f56a45d56
Adds some options into AppSettings for JogAmp's JOGL and JOAL
9 years ago
Georg
495e0cf6d5
Fixed wrong BoundingBox transformation, when using negative scaling values
9 years ago
Kirill Vainer
500f57a64f
AssetManager: set locator path only once per thread
9 years ago
Kirill Vainer
aee7d1f195
GLSLCompat.glsllib: fix incorrect preprocessor define
9 years ago
Kirill Vainer
6970c8db8a
shapes: set static usage on all VBs
9 years ago
Kirill Vainer
78d2d6e944
GLRenderer: fix invalid enum error when using framebuffers
9 years ago
Kirill Vainer
f32d92ef30
bounding: add bound vs. spatial, also improve unit test
9 years ago
Kirill Vainer
81b5c48fb0
unit test: add unit tests for bounds and light filter / sort
9 years ago
Kirill Vainer
c41058a5a0
spot light: fix broken filter for infinite range
9 years ago
Kirill Vainer
22dde7f718
point light: more accurate sphere vs box filter
9 years ago
Kirill Vainer
6238088688
light: minor non-functional changes
9 years ago
Kirill Vainer
31383778d9
light: ensure directional lights are sorted to be always first
9 years ago
Kirill Vainer
1fa6c4ac11
bounding: move intersection algorithms to shared class
...
These algorithms are to be shared with the light filter.
9 years ago
Kirill Vainer
45f8893f13
bounding: properly implement collideWith against other bounds
9 years ago
Daniel Johansson
dd6356eff1
Reverted some more light code which should not be in this branch.
9 years ago
Daniel Johansson
88bf9d4580
Reverted some changes to light classes which was not meant to be committed as part of #314 .
9 years ago
Kirill Vainer
e9245a753b
GLTracer: generate syntax highlighting and easier to read output
9 years ago
Kirill Vainer
9da4b78830
GLRenderer: disable unused vertex attributes before rendering instead of after
9 years ago