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" }
20 # Shader graph mapping
21 # ------------------------------------------------------------------------------
23 def material_tex_image(v
):
33 "ShaderNodeBsdfPrincipled":
39 "Color1": material_tex_image("basetexture"),
40 "Color2": material_tex_image("decaltexture")
44 "image":"$basetexture"
47 [("VertexLitGeneric","$color2"),\
48 ("UnlitGeneric","$color2"),\
49 ("LightMappedGeneric","$color")]
53 "ShaderNodeNormalMap":
55 "Color": material_tex_image("bumpmap")
61 # Shader keyvalues / material properties
62 # ------------------------------------------------------------------------------
69 "shaders": ("UnlitGeneric","VertexLitGeneric","LightMappedGeneric"),
73 "name": "Base Texture",
79 "name": "Decal Texture",
88 ('0',"AlphaOver","Default",'',0),
89 ('1',"Multiply","",'',1),
90 ('2',"Modulate","",'',2),
91 ('3',"Additive","",'',3)
101 "flags": NBVTF_TEXTUREFLAGS_NORMAL
, # OpenGL (correct) normal maps.
122 "shaders": ("VertexLitGeneric", "LightMappedGeneric"),
142 "$phongfresnelranges":
144 "name": "Fresnel Ranges",
146 "default":(1.0,1.0,1.0)
160 "default": (1.0,1.0,1.0)
164 "name": "Light Scale",
168 "$envmaplightscaleminmax":
179 "shaders": ("UnlitGeneric","VertexLitGeneric","LightMappedGeneric"),
183 "name": "Translucent",
189 "name": "Alpha Test",
193 "$alphatestreference":
209 # Entity KV definitions
210 # Note: currently blender doesnt support enum or bool types for IDProperties,
211 # so unfortunately the panel UI is a little bit bad to work with.
212 # ------------------------------------------------------------------------------
216 # Builtin/intrinsic entities, you probably dont want to modify these
217 "light": { "keyvalues": ent_lights
},
218 "light_spot": { "keyvalues": ent_lights
},
219 "env_cubemap": { "keyvalues": ent_cubemap
},
220 "prop_static": { "keyvalues": ent_prop
},
224 "info_player_counterterrorist":
228 "keyvalues": cxr_baseclass([ent_transform
],\
230 "priority": {"type": "int", "default": 0 },
231 "enabled": {"type": "int", "default": 1 },
234 "info_player_terrorist":
238 "keyvalues": cxr_baseclass([ent_transform
],\
240 "priority": {"type": "int", "default": 0 },
241 "enabled": {"type": "int", "default": 1 },
252 "TeamNum": {"type": "int", "default": 0 }