Updated embedded Cg shaders

This commit is contained in:
Robert Beckebans 2014-08-02 15:10:06 +02:00
parent e03ed8769d
commit 05b21ff3ad

View file

@ -326,7 +326,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0); // Y\n"
"uniform sampler2D samp1 : register(s1); // Cr\n"
@ -391,7 +391,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -447,7 +447,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0); // Y\n"
"uniform sampler2D samp1 : register(s1); // Cr\n"
@ -519,7 +519,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -581,7 +581,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"uniform sampler2D samp1 : register(s1);\n"
@ -633,7 +633,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -1202,6 +1202,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"\n"
"Doom 3 BFG Edition GPL Source Code\n"
"Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. \n"
"Copyright (C) 2013 Robert Beckebans\n"
"\n"
"This file is part of the Doom 3 BFG Edition GPL Source Code (\"Doom 3 BFG Edition Source Code\"). \n"
"\n"
@ -1225,7 +1226,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0); // texture 0 is the cube map\n"
"uniform sampler2D samp1 : register(s1); // normal map\n"
@ -1247,7 +1248,14 @@ static const cgShaderDef_t cg_renderprogs[] =
"void main( PS_IN fragment, out PS_OUT result ) {\n"
"\n"
" float4 bump = tex2D( samp1, fragment.texcoord0 ) * 2.0f - 1.0f;\n"
" float3 localNormal = float3( bump.wy, 0.0f );\n"
" // RB begin\n"
" float3 localNormal;\n"
"#if defined(USE_NORMAL_FMT_RGB8)\n"
" localNormal = float3( bump.rg, 0.0f );\n"
"#else\n"
" localNormal = float3( bump.wy, 0.0f );\n"
"#endif\n"
" // RB end\n"
" localNormal.z = sqrt( 1.0f - dot3( localNormal, localNormal ) );\n"
"\n"
" float3 globalNormal;\n"
@ -1298,7 +1306,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -1360,6 +1368,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"\n"
"Doom 3 BFG Edition GPL Source Code\n"
"Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. \n"
"Copyright (C) 2013 Robert Beckebans\n"
"\n"
"This file is part of the Doom 3 BFG Edition GPL Source Code (\"Doom 3 BFG Edition Source Code\"). \n"
"\n"
@ -1383,7 +1392,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0); // texture 0 is the cube map\n"
"uniform sampler2D samp1 : register(s1); // normal map\n"
@ -1405,7 +1414,15 @@ static const cgShaderDef_t cg_renderprogs[] =
"void main( PS_IN fragment, out PS_OUT result ) {\n"
"\n"
" float4 bump = tex2D( samp1, fragment.texcoord0 ) * 2.0f - 1.0f;\n"
" float3 localNormal = float3( bump.wy, 0.0f );\n"
" \n"
" // RB begin\n"
" float3 localNormal;\n"
"#if defined(GLES2)\n"
" localNormal = float3( bump.rg, 0.0f );\n"
"#else\n"
" localNormal = float3( bump.wy, 0.0f );\n"
"#endif\n"
" // RB end\n"
" localNormal.z = sqrt( 1.0f - dot3( localNormal, localNormal ) );\n"
"\n"
" float3 globalNormal;\n"
@ -1457,7 +1474,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -1599,7 +1616,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -1644,7 +1661,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"#if defined(USE_GPU_SKINNING)\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
@ -1677,22 +1694,22 @@ static const cgShaderDef_t cg_renderprogs[] =
" const float w3 = vertex.color2.w;\n"
"\n"
" float4 matX, matY, matZ; // must be float4 for vec4\n"
" float joint = vertex.color.x * 255.1 * 3;\n"
" int joint = int(vertex.color.x * 255.1 * 3.0);\n"
" matX = matrices[int(joint+0)] * w0;\n"
" matY = matrices[int(joint+1)] * w0;\n"
" matZ = matrices[int(joint+2)] * w0;\n"
"\n"
" joint = vertex.color.y * 255.1 * 3;\n"
" joint = int(vertex.color.y * 255.1 * 3.0);\n"
" matX += matrices[int(joint+0)] * w1;\n"
" matY += matrices[int(joint+1)] * w1;\n"
" matZ += matrices[int(joint+2)] * w1;\n"
"\n"
" joint = vertex.color.z * 255.1 * 3;\n"
" joint = int(vertex.color.z * 255.1 * 3.0);\n"
" matX += matrices[int(joint+0)] * w2;\n"
" matY += matrices[int(joint+1)] * w2;\n"
" matZ += matrices[int(joint+2)] * w2;\n"
"\n"
" joint = vertex.color.w * 255.1 * 3;\n"
" joint = int(vertex.color.w * 255.1 * 3.0);\n"
" matX += matrices[int(joint+0)] * w3;\n"
" matY += matrices[int(joint+1)] * w3;\n"
" matZ += matrices[int(joint+2)] * w3;\n"
@ -1987,7 +2004,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -2030,7 +2047,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -2079,7 +2096,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -2123,7 +2140,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -2213,7 +2230,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0); // texture 0 is the cube map\n"
"\n"
@ -2275,7 +2292,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -2340,7 +2357,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0); // texture 0 is the cube map\n"
"\n"
@ -2403,7 +2420,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -2643,7 +2660,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"uniform sampler2D samp1 : register(s1);\n"
@ -2696,7 +2713,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -2758,7 +2775,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"uniform sampler2D samp1 : register(s1);\n"
@ -2812,7 +2829,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -2914,7 +2931,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"#define FXAA_GREEN_AS_LUMA 1\n"
"#define FXAA_EARLY_EXIT 0\n"
"#include \"Fxaa3_11.h\"\n"
@ -3029,7 +3046,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -3285,7 +3302,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -3339,7 +3356,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -3377,7 +3394,8 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"\n"
"Doom 3 BFG Edition GPL Source Code\n"
"Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. \n"
"Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.\n"
"Copyright (C) 2013-2014 Robert Beckebans \n"
"\n"
"This file is part of the Doom 3 BFG Edition GPL Source Code (\"Doom 3 BFG Edition Source Code\"). \n"
"\n"
@ -4716,7 +4734,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0); // texture 1 is the per-surface bump map\n"
"uniform sampler2D samp1 : register(s1); // texture 2 is the light falloff texture\n"
@ -4751,17 +4769,24 @@ static const cgShaderDef_t cg_renderprogs[] =
" half3 diffuseMap = ConvertYCoCgToRGB( YCoCG );\n"
"\n"
" half3 localNormal;\n"
" // RB begin\n"
"#if defined(USE_NORMAL_FMT_RGB8)\n"
" localNormal.xy = bumpMap.rg - 0.5;\n"
"#else\n"
" localNormal.xy = bumpMap.wy - 0.5;\n"
"#endif\n"
" // RB end\n"
" localNormal.z = sqrt( abs( dot( localNormal.xy, localNormal.xy ) - 0.25 ) );\n"
" localNormal = normalize( localNormal );\n"
"\n"
" const half specularPower = 10.0f;\n"
" half hDotN = dot3( normalize( fragment.texcoord6.xyz ), localNormal );\n"
" half3 specularContribution = _half3( pow( hDotN, specularPower ) );\n"
" // RB: added abs\n"
" half3 specularContribution = _half3( pow( abs( hDotN ), specularPower ) );\n"
"\n"
" half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;\n"
" half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.xyz;\n"
" half3 lightColor = dot3( lightVector, localNormal ) * lightProj.xyz * lightFalloff.xyz;\n"
" half3 lightColor = lightProj.xyz * lightFalloff.xyz; // ambient fix\n"
"\n"
" result.color.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;\n"
" result.color.w = 1.0;\n"
@ -4800,7 +4825,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -4895,6 +4920,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"\n"
"Doom 3 BFG Edition GPL Source Code\n"
"Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company. \n"
"Copyright (C) 2013 Robert Beckebans\n"
"\n"
"This file is part of the Doom 3 BFG Edition GPL Source Code (\"Doom 3 BFG Edition Source Code\"). \n"
"\n"
@ -4918,7 +4944,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0); // texture 1 is the per-surface bump map\n"
"uniform sampler2D samp1 : register(s1); // texture 2 is the light falloff texture\n"
@ -4953,7 +4979,13 @@ static const cgShaderDef_t cg_renderprogs[] =
" half3 diffuseMap = ConvertYCoCgToRGB( YCoCG );\n"
"\n"
" half3 localNormal;\n"
" // RB begin\n"
"#if defined(USE_NORMAL_FMT_RGB8)\n"
" localNormal.xy = bumpMap.rg - 0.5;\n"
"#else\n"
" localNormal.xy = bumpMap.wy - 0.5;\n"
"#endif\n"
" // RB end\n"
" localNormal.z = sqrt( abs( dot( localNormal.xy, localNormal.xy ) - 0.25 ) );\n"
" localNormal = normalize( localNormal );\n"
"\n"
@ -4963,7 +4995,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"\n"
" half3 diffuseColor = diffuseMap * rpDiffuseModifier.xyz;\n"
" half3 specularColor = specMap.xyz * specularContribution * rpSpecularModifier.xyz;\n"
" half3 lightColor = dot3( lightVector, localNormal ) * lightProj.xyz * lightFalloff.xyz;\n"
" half3 lightColor = lightProj.xyz * lightFalloff.xyz; // ambient fix\n"
"\n"
" result.color.xyz = ( diffuseColor + specularColor ) * lightColor * fragment.color.xyz;\n"
" result.color.w = 1.0;\n"
@ -5003,7 +5035,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -5180,7 +5212,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0); // view color\n"
"uniform sampler2D samp1 : register(s1); // view depth\n"
@ -5278,7 +5310,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -5327,7 +5359,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -5378,7 +5410,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -5435,7 +5467,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -5478,7 +5510,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -5530,7 +5562,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -5573,7 +5605,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -5625,7 +5657,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -5669,7 +5701,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -5765,7 +5797,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"struct PS_OUT {\n"
@ -5809,7 +5841,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -5905,7 +5937,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct PS_IN {\n"
" float4 position : VPOS;\n"
@ -5972,7 +6004,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6112,7 +6144,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0);\n"
"\n"
@ -6163,7 +6195,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6223,7 +6255,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -6267,7 +6299,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6320,7 +6352,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"uniform sampler2D samp1 : register(s1);\n"
@ -6374,7 +6406,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6427,7 +6459,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"/*\n"
"\n"
@ -6507,7 +6539,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6559,7 +6591,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -6608,7 +6640,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6671,7 +6703,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -6723,7 +6755,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -6790,7 +6822,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -6843,7 +6875,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform matrices_ubo { float4 matrices[408]; };\n"
"\n"
@ -6948,7 +6980,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform sampler2D samp0 : register(s0);\n"
"\n"
@ -7005,7 +7037,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -7188,7 +7220,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"uniform samplerCUBE samp0 : register(s0);\n"
"\n"
@ -7239,7 +7271,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"
@ -7302,7 +7334,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct PS_OUT { \n"
" float depth : DEPTH;\n"
@ -7346,7 +7378,7 @@ static const cgShaderDef_t cg_renderprogs[] =
"===========================================================================\n"
"*/\n"
"\n"
"#include \"global.inc\"\n"
"#include \"renderprogs/global.inc\"\n"
"\n"
"struct VS_IN {\n"
" float4 position : POSITION;\n"