169 Commits

Author SHA1 Message Date
Jan
595af125b9 Load state maps when loading techniques 2022-08-13 20:50:40 +02:00
Jan
886bcfeaf8 Add non static evaluation for simple expressions 2022-08-13 14:13:11 +02:00
Jan
364d801d3f fix compilation on gcc 2022-08-07 19:23:30 +02:00
Jan
63e9dc0c43 Material loading effect base 2022-08-07 19:17:04 +02:00
Jan
a8bb1a5ead Load particle cloud materials 2022-08-07 15:45:40 +02:00
Jan
713eb77230 Add material loading for tools materials 2022-08-07 12:06:02 +02:00
Jan
f87039d324 Rename base statebits to base state bits 2022-08-06 23:11:24 +02:00
Jan
1e546d4a19 Write broken material statebits writing 2022-08-06 19:08:45 +02:00
Jan
f3b175ab08 Handle material alphatest gt0 2022-08-06 18:59:13 +02:00
Jan
c010355d4a Dump material tile and filter properties 2022-08-06 18:47:28 +02:00
Jan
028d8fde7d Skip material loading for other types than 2d 2022-08-06 16:15:29 +02:00
Jan
347c1b3d68 Fix material loading sortkeys and cameraRegion 2022-08-06 15:40:00 +02:00
Jan
5771044c08 Material dumping and loading stuff 2022-08-06 10:52:52 +02:00
Jan
a3a01660d6 Add TechsetDefinitionCache to cache loaded techset definitions 2022-08-06 10:52:35 +02:00
Jan
b474109452 depthtest, depthwrite, polygonOffset for material loading 2022-07-24 13:54:58 +02:00
Jan
dd09027f0b CullFace loading material 2022-07-23 22:16:46 +02:00
Jan
61b44070e4 alphatest, blendfunc, colorwrite material loading 2022-07-23 21:29:45 +02:00
Jan
2f948ea54a More material loading constants 2022-07-23 15:50:35 +02:00
Jan
0cbf234faf Use string constants for material loading 2022-07-23 14:33:27 +02:00
Jan
92d808b7a4 Use constants for material sort key names 2022-07-23 13:05:37 +02:00
Jan
ea79e60856 Load material sortkeys v1 2022-07-23 12:22:59 +02:00
Jan
80a66a5d2c Finalize loaded material with textures 2022-07-15 11:25:38 +02:00
Jan
82349d3432 Material loading base 2022-07-15 11:21:54 +02:00
Jan
6ff86ae5e7 Set technique flags based on used constants, samplers and technique names 2022-04-16 22:51:38 +02:00
Jan
cb45bdaadc Progress on reversing technique flags 2022-04-16 15:41:45 +02:00
Jan
0ae5afc197 Set technique flags based on argument code samplers 2022-04-15 17:53:12 +02:00
Jan
15fd1ae686 Order shader args like the game does 2022-04-15 17:52:32 +02:00
Jan
9990338130 Handle custom samplers 2022-04-15 16:34:44 +02:00
Jan
65c9267b06 Correctly identify update frequencies for shader arguments 2022-04-15 16:01:39 +02:00
Jan
cd8e6cf96a Fix not being able to use StructuredDataDefSet assets from memory 2022-04-15 13:00:08 +02:00
Jan
12af03d77b Do not output errors when use menus from loaded assets 2022-04-15 12:54:37 +02:00
Jan
0f3d1d3488 Load shader from disk if they are only available as referenced assets to write techniques using them 2022-04-15 12:54:10 +02:00
Jan
7d80ff670d Convert technique passes 2022-04-14 20:11:51 +02:00
Jan
7f496ce478 Automatically handle unspecified shader arguments 2022-04-14 19:49:35 +02:00
Jan
3ba68eb2f4 Remember which vertex shader and pixel shader args have been handled already 2022-04-11 20:06:02 +02:00
Jan
99c7ebbe9b Load vertex decl asset 2022-04-10 19:39:26 +02:00
Jan
e0bcf7aff0 Load Vertex Stream Routing 2022-04-10 17:48:12 +02:00
Jan
bd291a75a9 Accept technique material arguments 2022-04-10 14:51:38 +02:00
Jan
516878698d Only accept sampler arguments for sampler shader arguments and constant argument for constant shader arguments 2022-04-10 13:58:08 +02:00
Jan
7d2ca46cb1 Dump known material argument hashes 2022-04-09 19:07:24 +02:00
Jan
13c5ea2986 Ignore shaders versions in technique files 2022-04-09 19:03:12 +02:00
Jan
bdb782a679 Fix issues with technique parser 2022-03-30 19:25:58 +02:00
Jan
4a52f3304e Fix asset loaders for vertex and pixel shader not using correct file name 2022-03-30 19:25:41 +02:00
Jan
b5cd357014 WIP Technique loading 2022-03-30 18:38:50 +02:00
Jan
99d5caf1f2 Fix techset parsing naming issues 2022-03-27 16:21:06 +02:00
Jan
a47370613b Reuse previously loaded techniques 2022-03-27 16:17:36 +02:00
Jan
eb5312899f Parse techset files for IW4 2022-03-26 18:47:43 +01:00
Jan
d0e8e94561 Load vertex shader and pixel shader from raw 2022-03-25 18:35:22 +01:00
Jan
8133f4d57e Fix accidentally setting size in bits value to a size in byte field when converting indexarray and enumedarray 2022-03-22 16:08:28 +01:00
Jan
ab5a998903 Sort StructuredDataDef members and entries alphabetically after parsing 2022-03-22 15:09:07 +01:00