projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
force compression
[carveJwlIkooP6JGAAIwe30JlM.git]
/
blender_export.py
diff --git
a/blender_export.py
b/blender_export.py
index cc0eb21ecebf9bb2a02b5135648a7601f6815bd7..e9b7a1e46d8d7c9ceb6b4cdb70e22baaf6ca178e 100644
(file)
--- a/
blender_export.py
+++ b/
blender_export.py
@@
-872,6
+872,7
@@
def sr_compile_material( mat ):#{
if mat.SR_data.shader == 'standard': m.shader = 0
if mat.SR_data.shader == 'standard_cutout': m.shader = 1
if mat.SR_data.shader == 'standard': m.shader = 0
if mat.SR_data.shader == 'standard_cutout': m.shader = 1
+ if mat.SR_data.shader == 'foliage': m.shader = 10
if mat.SR_data.shader == 'terrain_blend':#{
m.shader = 2
if mat.SR_data.shader == 'terrain_blend':#{
m.shader = 2
@@
-931,7
+932,8
@@
def sr_compile_material( mat ):#{
#}
if mat.SR_data.shader in ['standard', 'standard_cutout', 'terrain_blend', \
#}
if mat.SR_data.shader in ['standard', 'standard_cutout', 'terrain_blend', \
- 'vertex_blend', 'fxglow', 'cubemap' ]: #{
+ 'vertex_blend', 'fxglow', 'cubemap', \
+ 'foliage' ]: #{
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'])
#}
@@
-3655,7
+3657,8
@@
class SR_MATERIAL_PROPERTIES(bpy.types.PropertyGroup):
('boundary','Boundary',''),
('fxglow','FX Glow',''),
('cubemap','Cubemap',''),
('boundary','Boundary',''),
('fxglow','FX Glow',''),
('cubemap','Cubemap',''),
- ('walking','Walking','')
+ ('walking','Walking',''),
+ ('foliage','Foliage','')
])
surface_prop: bpy.props.EnumProperty(
])
surface_prop: bpy.props.EnumProperty(