TehLeo
28281f7962
Fix for MTR Framebuffers
...
The problem: Happens with two MTR framebuffers with same number of color attachements.
If we set a frame buffer frame1, then later frame2.
r.setFrameBuffer(frame1);
r.setFrameBuffer(frame2);
Frame2 buffer will not output to multiple targets. Only its first target will be rendered.
This patch fixes that problem.
8 years ago
Ali-RS
bdd15b7f3e
fixed a typo
8 years ago
Sebastian Weiß
e8f76d43fe
implemented all changes regarding OpenCL (and some missing stuff)
8 years ago
Nehon
9665b985e4
Fixed wrong alpha handling in the pbr shader
8 years ago
Rémy Bouquet
2c388e489a
null check on the lightList in SinglePassAndImageBasedLightingLogic.makeCurrent. as it may be null when you preload
8 years ago
Rémy Bouquet
beb5033747
added GLSL compat to the pbr shader
8 years ago
Rémy Bouquet
5aa8af28cd
fixed Lod functions overload in GLSLCompat lib
8 years ago
Rémy Bouquet
85c119c132
Changed the way IBL is switched on and off in the PBR shader and in the technique def logic because the old way was causing some issues on mac... for some unknown reason.
...
Now it's toggled on and off with a define, but there might still be some issues on mac when there are several lighting passes.
8 years ago
Rémy Bouquet
8f701460aa
used enable instead of require for the textureCubeLod extension
8 years ago
Rémy Bouquet
aeb4daf04f
Fixed some issue with textureCubeLod in the PBR shader with early versions of glsl
8 years ago
Rémy Bouquet
662a0151e2
fixed glsl 1.0 version of the postShadowFilter shader
8 years ago
Rémy Bouquet
68c082c13d
fixed transparent shadows on mac.
8 years ago
Rémy Bouquet
7efbccfe4d
Changed the int value of EdgeFilteringMode.Nearest from 0 to 10 as it seems a define with a 0 value is now ignored.
8 years ago
Julien Gouesse
d0f0cfe5e7
Fixes a spelling mistake in the reflection allocator
8 years ago
Julien Gouesse
f820bbfd94
Fixes the reflection allocator with Java 9, tested with Java 9 Early Access build 129 and OpenJDK 1.8.0 update 101
8 years ago
Michael Braunstingl
6728ac1115
Corrected parenthesis bug.
9 years ago
Michael Braunstingl
1bbe34160c
Corrected the bug in RenderState.toString()
9 years ago
Michael Braunstingl
d39b780fa5
Added RenderState.BlendMode.Custom
...
BlendMode.Custom allows glBlendFuncSeparate() calls.
9 years ago
Kai Boernert
b4c6febe4c
whitespace tab to 4spaces formating only change
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
Kai Boernert
846232063c
whitespace tab to 4spaces formating only change
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
Kai Boernert
810a4c3350
fix for wrongly marking as used, thanks to AlrikG for finding this
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
empirephoenix
85d62d44aa
Revert "jemalloc allocator and reflection allocator fix"
9 years ago
Alrik
dea6f6ab1c
- fix ReflectionAllocator use wrong buffer allocator to initialize
...
- add jemalloc allocator
9 years ago
tiatin
c9b5f9eb59
Added ability to set framebuffer image format used in FilterPostProcessor.
...
https://hub.jmonkeyengine.org/t/ability-to-change-image-format-for-filterpostprocessor/36379
9 years ago
Kai Boernert
4b5c945d80
Fix for travis
9 years ago
Kai Boernert
c71d87ed71
Extracted an Allocator interface for DirectByteBuffers
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
Kai Boernert
bc701c174b
Extracted an Allocator interface for DirectByteBuffers
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
Kai Boernert
848a9217d0
Extracted an Allocator interface for DirectByteBuffers
...
Signed-off-by: Kai Boernert <kai-boernert@visiongamestudios.de>
9 years ago
Nehon
201010b6f0
fixed a merge issue in the previous bomb merge
9 years ago
Nehon
67fb8fc812
Fixed an issue in SinglePAssAndLightBasedLogic where texture units were not properly assigned
9 years ago
tiatin
8e8186de0a
Changed overrides from ArrayList to SafeArrayList for GC and iteration performance reasons. Fixed bug in SafeArrayList.equals().
9 years ago
tiatin
b524dcd66d
Added iteration using iterator, if List is not ArrayList.
...
Reason for this is that if List is LinkedList, complexity for get(int i) is O(n/4).
9 years ago
tiatin
9c669547ab
Changed iteration over List from for-each to manual iteration.
...
For-Each loop creates Iterator object and uses hasNext and next methods, which are slower, than manual iteration. Also allocating Iterator object increases work for GC.
Forum post: https://hub.jmonkeyengine.org/t/iteration-over-list-performance-improvement/36250
See test 9 for more details: http://www.devahead.com/blog/2011/12/coding-for-performance-and-avoiding-garbage-collection-in-android/
9 years ago
NemesisMate
ce82a8a7b9
improved the setUserData method.
9 years ago
Riccardo Balbo
f3319d3fd6
Fix npe
9 years ago
NemesisMate
cdc708dcda
userdata to null again once all data is removed.
9 years ago
shamanDevel
a8d77a7cd1
OpenCLObject.register() now returns this.
...
This allows to chain the register method like kernel=program.createKernel("ScaleKernel").register(); or testBuffer=clContext.createBuffer(1024).register();
9 years ago
shamanDevel
46db6d95f8
Added getter method for the device associated with a command queue
9 years ago
shamanDevel
eb07d69cd8
missing toString() methods added
9 years ago
jjYBdx4IL
a20a84cf42
fixes issue https://github.com/jMonkeyEngine/jmonkeyengine/issues/506 : Material->toString() does not prevent/check for possible NPEs
9 years ago
Nehon
619a323b9d
Fixed an issue when resizing the viewport, with a FPP and antialiasing would stop rendering
9 years ago
MeFisto94
9e187647d0
Fix Hardware Skinning in 3.1 by implementing proper Array Serialization for MatParams and making the Shared Materials Check only a warning (it would pop up once each time you load the j3o and if you really use Shared Materials you have weird animations and some log spamming)
9 years ago
shamanDevel
66b8447caa
Added pre-order traversal as an alternative to the default post-order depth first search traversal
9 years ago
Rémy Bouquet
334cad4657
proper equal and hashcode for ShaderNodesVariables.
9 years ago
Dokthar
63fb53f6e4
more typo ... ytpo ytop opyt ;)
9 years ago
Dokthar
a52a51cb27
typo fix in materials & shaders, also fix some javadoc
9 years ago
shamanDevel
732e75fba6
fixed unmapping of buffer objects and an error in setArg in Lwjgl3's Kernel
9 years ago
shamanDevel
250c871cab
Added a library for Matrix4f
9 years ago
shamanDevel
4e55e0e5a0
added library for Matrix3f, fixed some bugs
9 years ago
Nehon
8d01c5a26f
MatDef is not Savable anymore. Kind of reverted previous commit and implemented and very straight forward exporter for J3mds that doesn't use the Savable process of jme3 since it's designed to save the whole graph and not only subparts of it like materials and material defs. The API stays the same though
9 years ago