1 # Convexer default configuration .py
4 # ------------------------------------------------------------------------------
5 # cxr_shaders Defines shader names
6 # cxr_graph_mapping Contains a graph to traverse Blender shader nodes
7 # cxr_shader_params Material shader properties and groups
8 # cxr_entities Entity info
14 "LightMappedGeneric": { "name": "Light Mapped" },
15 "VertexLitGeneric": { "name": "Vertex Lit" },
16 "UnlitGeneric": { "name": "Unlit" },
17 "Builtin": { "name": "Builtin" },
18 "WorldVertexTransition": { "name": "Light Mapped Blend" }
21 # Shader graph mapping
22 # ------------------------------------------------------------------------------
24 def material_tex_image(v
):
34 # 'Special' shader for wvt
37 "modulate": material_tex_image("blendmodulatetexture"),
38 "basetexture": material_tex_image("basetexture"),
39 "basetexture2": material_tex_image("basetexture2"),
40 "bumpmap": material_tex_image("bumpmap"),
41 "bumpmap2": material_tex_image("bumpmap2")
44 # Default shader setup
51 "Color1": material_tex_image("basetexture"),
52 "Color2": material_tex_image("decaltexture")
56 "image": "$basetexture"
59 [("VertexLitGeneric","$color2"),\
60 ("UnlitGeneric","$color2"),\
61 ("LightMappedGeneric","$color")]
67 "Color": material_tex_image("bumpmap")
73 # Shader keyvalues / material properties
74 # ------------------------------------------------------------------------------
81 "shaders": ("UnlitGeneric",\
83 "LightMappedGeneric",\
84 "WorldVertexTransition"),
88 "name": "Base Texture",
94 "name": "Base Texture 2",
98 "$blendmodulatetexture":
100 "name": "Blend Modulate",
106 "name": "Decal Texture",
112 "name": "Blend Mode",
115 ('0',"AlphaOver","Default",'',0),
116 ('1',"Multiply","",'',1),
117 ('2',"Modulate","",'',2),
118 ('3',"Additive","",'',3)
126 "name": "Normal Map",
128 "flags": NBVTF_TEXTUREFLAGS_NORMAL
, # OpenGL (correct) normal maps.
133 "name": "Normal Map 2",
135 "flags": NBVTF_TEXTUREFLAGS_NORMAL
,
156 "shaders": ("VertexLitGeneric", "LightMappedGeneric", "WorldVertexTransition"),
176 "$phongfresnelranges":
178 "name": "Fresnel Ranges",
180 "default":(1.0,1.0,1.0)
182 "$basemapalphaphongmask":
184 "name": "Base alpha mask",
200 "default": (1.0,1.0,1.0)
204 "name": "Light Scale",
208 "$envmaplightscaleminmax":
214 "$normalmapalphaenvmapmask":
216 "name": "Normal map mask",
220 "$basealphaenvmapmask":
222 "name": "Base map mask",
237 "shaders": ("UnlitGeneric","VertexLitGeneric","LightMappedGeneric"),
241 "name": "Translucent",
254 "name": "Alpha Test",
258 "$alphatestreference":
280 "shaders": ("WorldVertexTransition",),
287 # Entity KV definitions
288 # Note: currently blender doesnt support enum or bool types for IDProperties,
289 # so unfortunately the panel UI is a little bit bad to work with.
290 # ------------------------------------------------------------------------------
294 # Builtin/intrinsic entities, you probably dont want to modify these
295 "light": { "keyvalues": ent_lights
},
296 "light_spot": { "keyvalues": ent_lights
},
297 "light_environment": { "keyvalues": ent_lights
},
298 "env_cubemap": { "keyvalues": ent_cubemap
},
299 "prop_static": { "keyvalues": ent_prop
},
300 "sky_camera": { "keyvalues": ent_sky_camera
},
304 "info_player_counterterrorist":
308 "keyvalues": cxr_baseclass([ent_transform
],\
310 "priority": {"type": "int", "default": 0 },
311 "enabled": {"type": "int", "default": 1 },
314 "info_player_terrorist":
318 "keyvalues": cxr_baseclass([ent_transform
],\
320 "priority": {"type": "int", "default": 0 },
321 "enabled": {"type": "int", "default": 1 },
332 "TeamNum": {"type": "int", "default": 0 }
350 "damage": { "type":"int", "default": 10},
351 "damagecap": { "type":"int", "default": 20},
352 "damagetype": { "type":"int", "default": 0},
353 "damagemodel": { "type":"int", "default": 0},
354 "damagetype": {"type":"int","default":0},
355 "nodmgforce": {"type":"int","default":0},
356 "spawnflags": {"type":"int","default":4097},
357 "StartDisabled": {"type":"int","default":0}
363 "keyvalues": ent_soundscape
367 cxr_visgroups
= ['layout','overlap','remove','cover','user0','user1','user2','user3']