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.
8 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.
8 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
David Bernard
fe72dd67dd
add TechniqueDef.noRender
10 years ago
Riccardo Balbo
7fa735fdb1
Remove root slash from the asset path
10 years ago
Kirill Vainer
0178029782
Example to show character model cloning / export
10 years ago
Kirill Vainer
b4baaadc79
JmeExporter: remove useless return
10 years ago
Kirill Vainer
10cde0a4b2
DXTFlipper: fix incorrect flipping of DXT5 images of size 2x2
...
For DXT1/3 images, the format for color and alpha blocks is the same,
so the bug would not appear. For DXT5 images, the alpha block is formatted
differently. The issue is that it flips the color block and then the alpha
block for 2x2 images, but the correct order is alpha block then color block.
10 years ago
Kirill Vainer
aba48495e1
J3MLoader: enforce MaterialKey requirements based on extension
10 years ago
Nehon
81c995edc4
PBR shader and PBR test case with custom model
10 years ago
shadowislord
fdf050c13d
J3MLoader: set texture name in addition to key when loading it
10 years ago
shadowislord
400c09a633
jme3-core: fix minor issues pointed in static analysis
10 years ago
Nehon
8a96772ae3
KTX file loading and writing support
10 years ago
Nehon
7ab9798ad7
J3MLoader can now read the LightSpace attribute
10 years ago
shadowislord
a7765cfb63
com.jme3.asset.plugins: javadoc additions
10 years ago
michael
99d69d1d01
Fixed formatting thanks to EmpirePhoenix
10 years ago
michael
a59f017710
Removed two sysouts
10 years ago