Moritz Brückner
9c27779f19
Fix normalmap parsing
2020-10-10 23:09:16 +02:00
Moritz Brückner
c7e42f3f9c
Some more fixes
2020-10-10 23:04:56 +02:00
Moritz Brückner
4c13017c4f
Fix export of brick/checker texture nodes
2020-10-10 22:54:11 +02:00
Moritz Brückner
860594266c
Fix world shader compilation for various input coordinate types
2020-10-10 21:28:36 +02:00
Moritz Brückner
2dd7407772
Fix parsing of transparent shader node
2020-10-10 20:27:19 +02:00
Moritz Brückner
3482878c22
Improve ParserState
2020-10-10 20:26:29 +02:00
Moritz Brückner
2f11b0c406
Further improve ParserState
2020-10-09 23:32:41 +02:00
Moritz Brückner
4f0316f076
cycles.py: move parents
into ParserState
2020-10-09 21:15:21 +02:00
Moritz Brückner
eed7329f57
Improve parsing oder
2020-10-09 19:46:06 +02:00
Moritz Brückner
cc5513b9fc
Cleanup whitespace
2020-10-09 19:45:40 +02:00
Moritz Brückner
968f687e5d
Fix parser lookup
2020-10-09 19:43:54 +02:00
Moritz Brückner
23b9016f13
Fix node group handling
2020-10-09 19:24:55 +02:00
Moritz Brückner
c6258894f1
Cleanup
2020-10-09 19:18:59 +02:00
Moritz Brückner
ea5118dba9
cycles.py: Fix writing of normals
2020-10-09 19:18:44 +02:00
Moritz Brückner
51e2f10f02
Better error handling
2020-10-09 19:13:15 +02:00
Moritz Brückner
0279ed7669
Support for world shader nodes
2020-10-09 19:13:08 +02:00
Moritz Brückner
13cf5d12a5
Check for uniqueness when adding init statements to shader main() (+ indent)
2020-10-08 23:08:37 +02:00
Moritz Brückner
78d86515dc
Fix parsing of hue-saturation node
2020-10-08 22:33:49 +02:00
Moritz Brückner
a83189b0be
Move basecol_only into ParserState
2020-10-08 21:19:52 +02:00
Moritz Brückner
75e73e09d6
Cleanup
2020-10-08 21:17:02 +02:00
Moritz Brückner
c8bdd961f5
Make more use of the ParserState class
2020-10-08 21:03:14 +02:00
Moritz Brückner
f8b3315c2d
Move node parsing into subpackages part 3
2020-10-05 23:37:48 +02:00
Moritz Brückner
0d2740daa8
Move node parsing into subpackages part 2
2020-10-05 20:51:58 +02:00
Moritz Brückner
cd63597fad
Add ParserState class for better handling of cycles.py state
2020-10-05 20:42:59 +02:00
Moritz Brückner
4c917c59e9
cycles.py: more cleanup and add some comments
2020-10-05 01:59:49 +02:00
Moritz Brückner
2412a9b4cf
cycles.py: further cleanup
2020-10-05 01:39:36 +02:00
Moritz Brückner
00e8952640
Fix parser function lookup
2020-10-05 01:39:23 +02:00
Moritz Brückner
da8fca1b3b
Move node parsing into subpackages part 1
2020-10-05 01:36:33 +02:00
Moritz Brückner
a4cd48ec28
Add some typehints and docstrings
2020-10-05 01:27:36 +02:00
QuantumCoderQC
5cf598bdf4
Custom Particle Node UI and implementation
2020-09-16 23:30:20 +02:00
QuantumCoderQC
822775b9cc
Support parsing of Custom Particle Node in Vertex Shader
2020-09-16 23:28:21 +02:00
QuantumCoderQC
0b252093f5
Shadowmap and Depth shader parsing for Custom Particle Node
2020-09-16 23:24:51 +02:00
QuantumCoderQC
fcc1db0743
Correct normals for instanced rendering when transparency enabled
2020-09-16 23:20:57 +02:00
QuantumCoderQC
c3092e781c
Add uniforms in Vertex Shader
2020-09-16 23:17:43 +02:00
QuantumCoderQC
14a8d8698f
Spoort for displacement in instanced objects
2020-09-08 00:26:44 +02:00
Moritz Brückner
3bbceda485
Add sampler2D access to ShaderData node
2020-08-27 23:22:24 +02:00
Moritz Brückner
df5e35663a
Add ShaderData node
2020-08-19 17:20:41 +02:00
Moritz Brückner
e2e0fd74bf
Remove uniform support from attribute node
2020-08-19 17:14:30 +02:00
Moritz Brückner
8d8526a389
Shader export: don't add duplicate ins/out/includes
2020-08-19 17:12:58 +02:00
Moritz Brückner
7c13f74454
Add shader uniform support for the attribute node
2020-08-18 20:28:12 +02:00
Moritz Brückner
9a47d77594
Implement receive shadow setting for mobile path + all light types
2020-07-13 23:20:58 +02:00
Moritz Brückner
32613312b3
Add newline after shader functions
2020-06-28 20:26:05 +02:00
Moritz Brückner
620cb1f26e
Custom shader names in shader make functions
2020-06-28 20:06:38 +02:00
Moritz Brückner
1a12ee280a
Export world shader data file
2020-06-24 00:18:39 +02:00
Moritz Brückner
1152b99e10
Fix non-material shader export by swapping evaluation order
2020-06-22 21:56:21 +02:00
Lubos Lenco
e30a8c7f46
Metal fixes
2020-05-11 09:03:13 +02:00
Lubos Lenco
c970c5db6c
Pass irradiance uniform as argument
2020-05-10 19:43:02 +02:00
luboslenco
b0cd02d68e
Allow multiple color attachment formats
2020-05-10 10:46:12 +02:00
Lubos Lenco
df6346c1d1
Color attachment format
2020-05-06 21:30:59 +02:00
Lubos Lenco
967f69b24a
Color attachment format
2020-05-06 18:11:02 +02:00
Kenny Lerma
0cb0720b2a
Corrected missing 'tex' and 'tex1' for custom materials/shaders
2020-05-02 08:23:15 -05:00
Moritz Brückner
fbf3ce813b
Fix compilation for multiple mapping nodes
2020-04-27 09:23:02 +02:00
Moritz Brückner
b58fab598c
Fix value node when used with material params
2020-04-23 11:43:01 +02:00
Moritz Brückner
1e4d94a77e
Fix docstring
2020-04-18 22:18:38 +02:00
Moritz Brückner
e3d4854546
Some code cleanup
2020-04-18 21:52:56 +02:00
Moritz Brückner
c4b6d835f7
Fix and refactor colorramp node
2020-04-18 21:52:38 +02:00
Moritz Brückner
546eea9f27
Automatically convert color/vector inputs to BW when connected to a float input
2020-04-18 21:50:07 +02:00
Moritz Brückner
4859034375
Fix uncommited import
2020-04-18 21:46:56 +02:00
Moritz Brückner
34d23dc42e
Store Value node outputs as const
2020-04-18 21:39:06 +02:00
Moritz Brückner
ce245d3ec8
PEP8 + type annotations for write_result() and res_var_name()
2020-04-18 21:38:35 +02:00
Moritz Brückner
146c890349
New Shader.add_const() method to add global constants
2020-04-18 21:26:45 +02:00
Moritz Brückner
6a16cebadf
Refactor mapping node
2020-04-11 16:44:06 +02:00
Simonrazer
8f04e18e07
Fix for Fragment
2020-03-21 13:02:12 +01:00
Simonrazer
8b5d000748
Optimise some more
2020-03-21 12:59:02 +01:00
Simonrazer
648d2b1bda
Optimize Voronoi
2020-03-21 11:30:56 +01:00
Simonrazer
08b86e7eb9
Fix typo
2020-03-20 15:44:17 +01:00
Simonrazer
d9d6c3e1d9
Update cycles_functions.py
2020-03-20 15:19:08 +01:00
Simonrazer
b2946ec87d
Update cycles.py
2020-03-20 15:16:08 +01:00
Simonrazer
97896c9fb2
Fix for other dimensions as well
2020-03-19 12:08:56 +01:00
Simonrazer
a0ad5061d0
Back to using 3d textures
2020-03-19 11:29:04 +01:00
Simonrazer
222ccd50d1
Fix div by 0 when mesh is flat
2020-03-19 11:24:17 +01:00
Simonrazer
a544194d4a
Separate procedural functions
2020-03-18 09:38:18 +01:00
Simonrazer
e1ecccf69f
Update cycles.py
2020-03-18 09:35:23 +01:00
Simonrazer
93492ea692
Upgrade noise texture
2020-03-17 09:53:21 +01:00
Simonrazer
c33d886caa
Update cycles.py
2020-03-17 09:51:34 +01:00
Simonrazer
2df762e3db
Upgrade Wave texture shader
2020-03-16 11:53:12 +01:00
Simonrazer
2e529deb19
Upgrade Wave texture node + Fix noise Value output
2020-03-16 11:51:41 +01:00
N8n5h
decf89305c
Fix support for box/triplanar mapping
...
I modified the shader parser so that triplanar mapping of textures is supported.
Normals are supported.
Currently tested with Armory PBR and Principled BSDF.
2020-03-14 23:44:15 -03:00
Simonrazer
3aaba5fe62
Don't use the Z coordinate in the shader
2020-03-13 16:30:42 +01:00
Simonrazer
d1765ab206
Update cycles.py
2020-03-13 16:28:55 +01:00
N8n5h
c04dbe4993
Fix Vertex Color and Tangent not exporting
...
Applied the same fix that is used for uvs, since it seems to solve the issue of not updating correctly for exporting of materials too.
Also added support for the Vertex Color node.
2020-03-02 02:04:54 -03:00
luboslenco
31161e7242
Fix Object Info material node
2020-01-02 13:53:54 +01:00
Moritz Brückner
1f9a4eaa0a
Save generated images as jpg
2019-12-21 20:51:16 +01:00
Moritz Brückner
8c28019f36
Add support for generated image textures
2019-12-21 20:30:49 +01:00
Moritz Brückner
99d7e12375
cycles.py: cleanup and use os.path.join() instead of string operations
2019-12-21 20:28:41 +01:00
N8n5h
35274c8673
fix alpha
2019-12-13 11:27:10 -03:00
Alexander
e72c997a11
Add blackbody node functionality
2019-12-12 18:13:39 +01:00
N8n5h
2b572db3d1
add initial support to Mapping dynamic inputs
...
This is to help transition to Blender 2.81.
I tried to tackle obtaining the input value if something was connected but it turned more complicated than I thought, so for starters I added support to the dynamic inputs default values so it compiles with no errors when a mapping node is present.
Please point out any ugly code.
2019-11-22 11:53:07 -03:00
luboslenco
24867658f1
Deprecated cleanup
2019-08-24 11:50:27 +02:00
unknown
df3a7b72cf
Expose normal attribute
2019-08-17 21:29:28 +02:00
unknown
8e2f037d9b
Fix packing inline
2019-07-14 16:45:34 +02:00
luboslenco
f82be5bc64
Improve packing
2019-07-07 22:02:07 +02:00
luboslenco
b869bf24b5
Update Math material node
2019-07-02 23:28:43 +02:00
luboslenco
49c0ef017f
Principled update
2019-06-03 11:04:52 +02:00
luboslenco
5e54187202
Principled update
2019-06-03 10:55:32 +02:00
unknown
36277934dc
Triplanar stubs
2019-06-02 16:53:13 +02:00
luboslenco
bcdfa7b4a7
Blend and alpha test for overlays pass
2019-05-19 15:24:46 +02:00
unknown
f9b268310d
Update image node color space handling
2019-05-15 10:45:31 +02:00
luboslenco
2303bada3a
Add single-data-file exporter option
2019-05-14 11:43:41 +02:00
luboslenco
38451d7a9a
Format
2019-05-01 21:27:19 +02:00