6402 Commits

Author SHA1 Message Date
Kirill Vainer
e4536808ca add point light mode for pre shadow techniques 2017-09-30 18:01:17 -04:00
Kirill Vainer
fe158e7b31 fix infinite recursive loop 2017-09-30 17:54:32 -04:00
Kirill Vainer
628fa23059 remove useless normalization in lighting shaders 2017-09-30 17:53:45 -04:00
Kirill Vainer
fca6d4a8b2 Merge remote-tracking branch 'origin/master' into in-pass-shadows 2017-09-22 14:07:33 -04:00
Kirill Vainer
ad2a9e6230 Revert "Resolving issue in ticket #661. Creating skelton debugger that allows bones to be extended in any direction instead of only the Y direction. (#681)"
This reverts commit 989c7926df8d1bccb635b97f55da7c05bfad60ad.
2017-09-22 13:51:49 -04:00
Stephen Gold
3b5248766e Merge pull request #745 from stephengold/master
testcase & fix for issue #744: collideWith() versus setIgnoreTransform()
2017-09-22 10:19:33 -07:00
Stephen Gold
e4bfe8a80d testcase & fix for issue #744: collideWith() versus setIgnoreTransform() 2017-09-22 09:36:52 -07:00
Nehon
37e4d4d564 PBR: Applied band factor to sh coefficient.
Regenrerated the default probe in test data
better gloss / spec pipeline
2017-09-22 17:58:29 +02:00
Alexandr Brui
66137d53b8 added auto closing readers. (#738) 2017-09-21 15:33:12 -04:00
Bekreth
989c7926df Resolving issue in ticket #661. Creating skelton debugger that allows bones to be extended in any direction instead of only the Y direction. (#681) 2017-09-21 15:30:58 -04:00
NemesisMate
4251d70b75 Fixed softkeyboard's (simulated) backspace not being recognized (#714)
The fix assumes that if a key-event's device is not recognized and the soft-keyboard is open, it is a touch-input event.
2017-09-21 15:28:47 -04:00
Alexandr Brui
fb99ca90b1 fixed NPE. (#737)
* fixed NPE.
* changed the if condition.
2017-09-21 15:27:18 -04:00
Nehon
97fe9cc49c PBR properly normalize tangent frame 2017-09-20 07:59:38 +02:00
Kirill Vainer
8d125a30ba Merge remote-tracking branch 'origin/master' into in-pass-shadows 2017-09-19 19:53:10 -04:00
Nehon
c00407da33 PBR : Removed specularColor contribution from direct lighting specular. 2017-09-18 23:00:57 +02:00
Nehon
e6a55e9d3a Dropped the use of the irradiance Map for LightProbes, only the spherical harmonics coeffs are stored and used to recompose indirect diffuse color in the shader.
Also added a tweak to get the specular dominant direction when sampling the prefiltered env maps. It gives better result on low roughness materials.
2017-09-18 11:14:45 +02:00
Nehon
0da2bfe0ba Changed how roughness is stored into prefiltered env map mipmaps for a more consistent method.
Bumped the default size of the LightProbe maps to 256
Change he integrateBRDF approximation method
2017-09-18 11:14:45 +02:00
Kirill Vainer
d50fb09efb Merge remote-tracking branch 'origin/master' into in-pass-shadows 2017-09-17 23:06:09 -04:00
Kirill Vainer
b56e321218 Avoid calculating whitepoint for each sample for HDR (#722)
* Avoid calculating whitepoint for each sample for HDR
2017-09-17 23:03:39 -04:00
Kirill Vainer
6127f7eb7a Miscellaneous OpenGL ES fixes (#720)
* Use correct HALF_FLOAT constant for GLES
* Support GLTracer and GL debug in Android
* Support instancing in GLTracer
* Don't use unsupported TEXTURE_{BASE,MAX}_LEVEL in GLES
* Support ABGR8 using swizzle extension
* Move glFramebufferTextureLayer to GLFbo
* Avoid RGB111110F in filters unless its actually supported
* Use the same depth format in all places in FPP
* Print the object with the problem in NativeObjectManager
* JMException does not exist on Android
2017-09-17 23:00:29 -04:00
Kirill Vainer
59c85d58c8 Merge remote-tracking branch 'origin/master' into in-pass-shadows 2017-09-17 22:39:38 -04:00
Kirill Vainer
4b4bf24127 fix shadow disappearing when frustum in front of caster 2017-09-17 22:34:06 -04:00
Kirill Vainer
0fae3839d3 remove unused methods 2017-09-17 22:33:13 -04:00
Kirill Vainer
c3cfab65c6 use 16-bit depth by default 2017-09-17 22:28:31 -04:00
Kirill Vainer
c136a4212e use PBR + support point light shadows in shader 2017-09-17 22:27:10 -04:00
Kirill Vainer
ec0fcd24d2 support point light shadows 2017-09-17 22:23:51 -04:00
Kirill Vainer
47b34c6de5 optimize clearing shadow maps 2017-09-17 22:21:50 -04:00
Kirill Vainer
1e861fd2fa Merge branch 'in-pass-shadows' of github.com:jMonkeyEngine/jmonkeyengine into in-pass-shadows 2017-09-17 22:13:48 -04:00
Kirill Vainer
b52d0e3743 fix wrong counts 2017-09-17 22:13:27 -04:00
Kirill Vainer
3889cb47b7 calculate lighting in world space 2017-09-17 22:11:42 -04:00
Kirill Vainer
2c385914c6 optimize pssm split calculation 2017-09-17 22:06:56 -04:00
Kirill Vainer
0a4a439745 optimize pssm split calculation 2017-09-17 22:05:48 -04:00
Stephen Gold
4b4cf62008 Merge pull request #734 from stephengold/master
test and fix for issue #651 (inverted rotation in Sky.vert)
2017-09-17 05:41:55 -07:00
Stephen Gold
d1bd48528c test and fix for issue #651 (inverted rotation in Sky.vert) 2017-09-16 11:42:51 -07:00
Kirill Vainer
d2839fd2ab Fix #558 (#729) 2017-09-16 13:25:21 -04:00
Nehon
ef5952bcad Refactored how BatchNode transforms vertex buffers, and fixed issue #731 (NPE when no normal buffer) 2017-09-16 14:27:04 +02:00
Nehon
c1c67f58cf reformat BatchNode before change 2017-09-16 11:50:44 +02:00
Nehon
2b014d194c glTF. support for glb files (binary self contained gltf) 2017-09-15 20:14:58 +02:00
Stephen Gold
ff75671162 Merge pull request #725 from stephengold/master
test and fix for issue #710 (phantom triangles in mesh collision)
2017-09-15 11:09:43 -07:00
Stephen Gold
adb52c5cc8 test and fix for issue #710 (phantom triangles in a mesh collision) 2017-09-11 19:20:39 -07:00
Kirill Vainer
a3145885d9 Support dynamic number of shadow maps 2017-09-10 18:36:16 -04:00
Kirill Vainer
5aa2c722fe Fix syntax error 2017-09-10 18:34:47 -04:00
Kirill Vainer
77e552f551 Implement static pass in the lighting material 2017-09-09 16:33:49 -04:00
Kirill Vainer
9c4fcac876 Add PreShadowArrayRenderer 2017-09-09 16:31:39 -04:00
Kirill Vainer
d159e1746c Combine forced render state with the one in the technique 2017-09-09 16:29:12 -04:00
Kirill Vainer
8a747276d7 Make sure apply = false for all forced render states 2017-09-09 16:28:11 -04:00
Kirill Vainer
ce28e35393 Fix additional render state missing apply = false 2017-09-09 16:27:02 -04:00
Kirill Vainer
42051b045b StaticPass supports setting shadow map index on light 2017-09-09 14:01:20 -04:00
Kirill Vainer
cfcec44b9a Add ShadowMap interface 2017-09-09 13:58:05 -04:00
Kirill Vainer
55e9fd067a Remove scale from updateFrustumPoints since its always 1.0 2017-09-09 13:53:39 -04:00