projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
glow effect
[carveJwlIkooP6JGAAIwe30JlM.git]
/
blender_export.py
diff --git
a/blender_export.py
b/blender_export.py
index 7117b4ca25c79d3f2c894f6bb77ea945fc3e6f9f..2b059d9730b125ccba52973a9c1cb8145ce80bec 100644
(file)
--- a/
blender_export.py
+++ b/
blender_export.py
@@
-760,14
+760,18
@@
def sr_compile_material( mat ):
if mat.SR_data.shader == 'boundary':#{
m.shader = 6
#}
if mat.SR_data.shader == 'boundary':#{
m.shader = 6
#}
+
+ if mat.SR_data.shader == 'fxglow':#{
+ m.shader = 7
+ #}
inf = material_info( mat )
if mat.SR_data.shader == 'standard' or \
mat.SR_data.shader == 'standard_cutout' or \
mat.SR_data.shader == 'terrain_blend' or \
inf = material_info( mat )
if mat.SR_data.shader == 'standard' or \
mat.SR_data.shader == 'standard_cutout' or \
mat.SR_data.shader == 'terrain_blend' or \
- mat.SR_data.shader == 'vertex_blend'
:
- #{
+ mat.SR_data.shader == 'vertex_blend'
or \
+
mat.SR_data.shader == 'fxglow':
#{
if 'tex_diffuse' in inf:
m.tex_diffuse = sr_compile_texture(inf['tex_diffuse'])
#}
if 'tex_diffuse' in inf:
m.tex_diffuse = sr_compile_texture(inf['tex_diffuse'])
#}
@@
-3069,7
+3073,8
@@
class SR_MATERIAL_PROPERTIES(bpy.types.PropertyGroup):
('vertex_blend', "vertex_blend", ''),
('water',"water",''),
('invisible','Invisible',''),
('vertex_blend', "vertex_blend", ''),
('water',"water",''),
('invisible','Invisible',''),
- ('boundary','Boundary','')
+ ('boundary','Boundary',''),
+ ('fxglow','FX Glow',''),
])
surface_prop: bpy.props.EnumProperty(
])
surface_prop: bpy.props.EnumProperty(