mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-04-19 15:52:53 +00:00
Add techset templates for 2d and distortion_scale
This commit is contained in:
parent
a7ceaf03ee
commit
3930688709
18
raw/iw4/techniques/trivial_vertcol_simple2d.tech
Normal file
18
raw/iw4/techniques/trivial_vertcol_simple2d.tech
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
stateMap "default2d";
|
||||||
|
|
||||||
|
vertexShader 3.0 "trivial_vertcol_simple.hlsl"
|
||||||
|
{
|
||||||
|
worldMatrix = constant.transposeWorldMatrix;
|
||||||
|
viewProjectionMatrix = constant.transposeViewProjectionMatrix;
|
||||||
|
}
|
||||||
|
|
||||||
|
pixelShader 3.0 "trivial_vertcol_simple.hlsl"
|
||||||
|
{
|
||||||
|
colorMapSampler = material.colorMap;
|
||||||
|
}
|
||||||
|
|
||||||
|
vertex.position = code.position;
|
||||||
|
vertex.color[0] = code.color;
|
||||||
|
vertex.texcoord[0] = code.texcoord[0];
|
||||||
|
}
|
2
raw/iw4/techsets/2d.techset
Normal file
2
raw/iw4/techsets/2d.techset
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
"unlit":
|
||||||
|
trivial_vertcol_simple2d;
|
53
raw/iw4/techsets/distortion_scale.techset.template
Normal file
53
raw/iw4/techsets/distortion_scale.techset.template
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
#pragma switch UV_ANIM
|
||||||
|
#pragma switch ZFEATHER
|
||||||
|
|
||||||
|
#pragma options MATERIAL_TYPE (default, world, world_vertcol)
|
||||||
|
|
||||||
|
#ifdef UV_ANIM
|
||||||
|
#define FILENAME_UV "_ua"
|
||||||
|
#else
|
||||||
|
#define FILENAME_UV ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ZFEATHER
|
||||||
|
#define FILENAME_ZFEATHER "_zfeather"
|
||||||
|
#else
|
||||||
|
#define FILENAME_ZFEATHER ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if MATERIAL_TYPE == "world"
|
||||||
|
#define FILENAME_MATERIAL_TYPE "w_"
|
||||||
|
#define MATERIAL_TYPE_SUFFIX "_nc"
|
||||||
|
#elif MATERIAL_TYPE == "world_vertcol"
|
||||||
|
#define FILENAME_MATERIAL_TYPE "wc_"
|
||||||
|
#define MATERIAL_TYPE_SUFFIX ""
|
||||||
|
#else
|
||||||
|
#define FILENAME_MATERIAL_TYPE ""
|
||||||
|
#define MATERIAL_TYPE_SUFFIX "_dtex"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef ZFEATHER
|
||||||
|
#define ZFEATHER_SUFFIX "_zfeather"
|
||||||
|
#else
|
||||||
|
#define ZFEATHER_SUFFIX ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef UV_ANIM
|
||||||
|
#define UV_ANIM_SUFFIX "_ua"
|
||||||
|
#else
|
||||||
|
#define UV_ANIM_SUFFIX ""
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#pragma filename FILENAME_MATERIAL_TYPE + "distortion_scale" + FILENAME_UV + FILENAME_ZFEATHER + ".techset"
|
||||||
|
|
||||||
|
#set EMISSIVE_TECHNIQUE "distortion_scale" + UV_ANIM_SUFFIX + ZFEATHER_SUFFIX + MATERIAL_TYPE_SUFFIX
|
||||||
|
#set WIREFRAME_TECHNIQUE "wireframe_solid" + MATERIAL_TYPE_SUFFIX
|
||||||
|
|
||||||
|
"emissive":
|
||||||
|
"emissive dfog":
|
||||||
|
"emissive shadow":
|
||||||
|
"emissive shadow dfog":
|
||||||
|
EMISSIVE_TECHNIQUE;
|
||||||
|
|
||||||
|
"solid wireframe":
|
||||||
|
WIREFRAME_TECHNIQUE;
|
Loading…
x
Reference in New Issue
Block a user