Riccardo Balbo
cf7b15bc23
j3md Fix for default textures ( #1052 )
6 years ago
Stephen Gold
75112201db
more corrections in diagnostic messages
6 years ago
Stephen Gold
f33252f4d0
spelling corrections in diagnostic messages
6 years ago
Stephen Gold
c11fbe4dd8
jme3-core JavaDoc corrections (comments only)
6 years ago
MeFisto94
3d63433b28
Fixes #961 - Remove unused + deprecated Exception
6 years ago
Paul Speed
d5bfe1e813
Modified the J3M loader to be a little less like a 1980s text adventure.
...
Added a message to the exception thrown when using an invalid light mode.
Converted it to an IOException instead of the UnsupportedOperationException
(which is a runtime exception) so that the calling code will output a meaningful
error about which asset actually failed.
6 years ago
Stephen Gold
025b27c96d
test cases and fix for issue #880
6 years ago
Nehon
302e746a94
Uses a HashSet for variable names in ShaderNodeLoaderDelegate instead of a String
7 years ago
Nehon
47406058a6
Fixes condition parsing for shader nodes
7 years ago
Stephen Gold
f40ba25a56
correct more grammar/spelling errors in comments
7 years ago
Stephen Gold
826908b042
correct more grammar/spelling errors in comments
7 years ago
Alexandr Brui
a8c7a85fc1
Implementing value mappings for shader nodes. ( #786 )
...
* implemented value mappings for shader nodes.
7 years ago
Stephen Gold
21425f81ef
more comment corrections in jme3-core: mostly spelling and grammar
7 years ago
Stephen Gold
74d70c4ee0
comment corrections in jme3-core: mostly spelling and grammar
7 years ago
javasabr
43b52cb77c
Fixed finding definitions during material loading.
7 years ago
javasabr
8674d8af4b
fixed detecting varyings during loading shader nodes in the case, when we have several output parameters with the same name but with different name spaces.
7 years ago
javasabr
9578b0410e
extended some things from shader node system.
7 years ago
Nehon
171007693b
De duplicate imports when generating a shader from shader nodes
7 years ago
Alexandr Brui
556e3de1c0
fixed asset linked node to reuse shared data between loaded models. ( #739 )
...
* fixed asset linked node to reuse shared data between loaded models.
* updated implementation of binary loader.
7 years ago
Alexandr Brui
66137d53b8
added auto closing readers. ( #738 )
7 years ago
javasabr
fac8266b5c
fixed two problems with asset manager:
...
1. can't load classes from asset class loaders.
2. can't load resources from asset class loaders.
7 years ago
Nehon
6ed4abf29e
ShaderNodes: changed the way condition are used for variable declaration.
...
Before each input (attribute, varying or uniform) depending on a define was declared inside a #ifdef statement, it appears that most compiler will optimize out any input that has not been set so this computation was useless and costly and the code to to it was kind of ugly.
So basically now it's only done in very particular cases when it's really needed.
7 years ago
Nehon
5ac5731ebf
Better error reporting when loading shaderNodeDefinition
8 years ago
Nehon
ee9c6d366a
ShaderNodeVariable now has a prefix attribute that is concatenated to the name when generating the shader (basically g_ and m_ when the variable is an uniform)
...
It avoid to change the name of the variable when loading the definition and always have weird inconsistencies with mat params because the name has a m_ or not.
8 years ago
Nehon
2f06c9b37b
ShaderNodeDefinition path is now set while loading the definition.
8 years ago
Nehon
26ccaaea88
DDSLoader now supports Luminance16f format (r16f)
8 years ago
Sebastian Weiß
02781e799f
oh man, I should have learned it by now, that jme uses spaces, not tabs
8 years ago
Sebastian Weiß
04b0578173
Certain dds texture lack the DDSCAPS_TEXTURE-flag, but are still recognized by programs like IrfanView and can also be loaded in the engine.
...
This commit weakens the check for this flag: Instead of throwing an exception, a warning is logged.
8 years ago
Sebastian Weiß
a3cd3cbb04
Certain dds texture lack the DDSCAPS_TEXTURE-flag, but are still recognized by programs like IrfanView and can also be loaded in the engine.
...
This commit weakens the check for this flag: Instead of throwing an exception, a warning is logged.
8 years ago
Nehon
a64594eea9
Better cloning for TechniqueDefs
8 years ago
Nehon
b0ed053472
Fixed a cloning issue and some tests
8 years ago
Nehon
12a2f0f63c
One can now define several versions for the shader in a Technique in a J3md file, ie:
...
VertexShader GLSL150 GLSL110 : "path/to/shader/file.vert"
FragmentShader GLSL150 GLSL110 : "path/to/shader/file.frag"
Versions must be separated with spaces. They will be matched together when creating the technique so they have to follow the same order for different shaders.
8 years ago
Nehon
4777c591b1
GLSLLoader now moves all extensions declaration found in the dependencies at the top of the shader code
8 years ago
Dokthar
a52a51cb27
typo fix in materials & shaders, also fix some javadoc
9 years ago
Kirill Vainer
e71cf81b96
J3M: allow static pass lighting to be selected
9 years ago
Nehon
c859cf375c
Fixed an issue with shaderNodes loading
9 years ago
Kirill Vainer
8bd5b59a0e
material: warn / ignore fixed function techniques
9 years ago
Kirill Vainer
b6729c46d4
code / comment cleanup
9 years ago
Kirill Vainer
876015ab47
deprecate alpha test / point sprite
9 years ago
Teencrusher
d1aae8d479
Added support to glBlendEquation for renderes implementing GL2, and material loading support
9 years ago
Kirill Vainer
280733c1ce
material: move technique logic into its own package
9 years ago
Kirill Vainer
9d035f747a
Add the new material system
...
Also includes some unrelated tests
Conflicts:
jme3-core/src/main/java/com/jme3/renderer/RenderManager.java
jme3-core/src/main/java/com/jme3/renderer/opengl/GLRenderer.java
9 years ago
Jan Ivenz
98a9f5c628
Fixed shader generation bug for array variables.
9 years ago
Nehon
493855bac9
LineWidth is now a RenderState parameter, One can change the lineWidth used to render a mesh wireframe or a mesh in Lines mode by using material.getAdditionalRenderState().setLineWidth(value)
9 years ago
Nehon
cb56fd88eb
For some reason the J3MLoader never loads the material name. Not that it's really important, but since we have the name field... let's read it...
9 years ago
Daniel Johansson
9f9cb824cd
Fixed an issue with J3MLoader thinking certain texture path patterns with new texture options still looked like old style and hence ignoring new options and getting the texture path wrong.
9 years ago
Nehon
50a9a8636b
HDRLoader, reverted the change that loaded the HDR files in sRGB space, since the specs says that data is in linear space for this format.
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
Daniel Johansson
d319a7c5d3
Added unit test for J3MLoader to cover the new texture parameters available in #295 . Also fixed a couple of issues in the code to reduce logging that was not needed and removed redundant code. This update also updates junit to 4.12 and adds Mockito and Fest Assertions as test dependencies.
10 years ago
Daniel Johansson
9059eb30e4
Added support for setting minification and magnification filters on a texture in the j3m material file. This also adds support for double and single quoted paths as well as being able to set WrapMode for a specific WrapAxis. This resolves #295
10 years ago